如何Android的定义屏幕分辨率为多久? [英] How does Android define a screen resolution as long?

查看:118
本文介绍了如何Android的定义屏幕分辨率为多久?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Android的,可以通过适当地命名资源目录定义不同的电话属性不同的资源。我需要能够支持不同的布局 480×800 的480x854 。我想我可以有一组存储在布局HDPI-V4目录资源,另一个在布局长期HDPI-V4。但是,这两个决议似乎认为他们是长期(至少基于模拟器,我的理解可能不反映设备准确)。

With Android, you can define different resources for different phone attribute by naming res directories appropriately. I need to be able to support different layouts for 480x800 and 480x854. I figured I could have one set of resources stored in the layout-hdpi-v4 directory and another in layout-long-hdpi-v4. However, both resolution seem to think that they are long (at least based on the emulator, which I understand may not reflect devices accurately).

有另一种方式,我可以二者之间的分辨率/高宽比?

Is there another way in which I can distinguish between the two resolutions/aspect ratios?

推荐答案

有一个的屏幕尺寸预选赛,但它的使用是德precated,建议不要使用:

There is a screen size qualifier, though its use is deprecated and recommended to not be used:

布局800×480 布局854×480

否则,它看起来并不像有资源命名支持的方式,可区分这两个决议,除了采用灵活的布局拓展到额外的屏幕空间。

Otherwise, it doesn't look like there is a supported way in resource naming that can differentiate the two resolutions, besides using flexible layouts to expand into the extra screen space.

这篇关于如何Android的定义屏幕分辨率为多久?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆