安卓:支持多屏幕 [英] Android: Supporting Multiple Screens
问题描述
有一个问题... Android的分裂实际的屏幕大小和密度到的范围:一组四个广义的大小:小,正常,大和XLARGE。 一组四个广义密度:LDPI(低),MDPI(中),华电国际(高),和xhdpi(超高)
Have a question...Android divides the range of actual screen sizes and densities into: A set of four generalized sizes: small, normal, large, and xlarge. A set of four generalized densities: ldpi (low), mdpi (medium), hdpi (high), and xhdpi (extra high)
1)什么都有了更高的优先级?
1) What have the higher priority ?
拉图说,我有一个大屏幕尺寸华电国际设备...我有2个文件夹在我的项目:布局大和布局 - 华电国际......哪个文件夹会用我的设备
Lats say I have hdpi device with large screen size...And I have 2 folders in my project: 'layout-large' and 'layout-hdpi'...Which folder will use my device ?
2)我在我的项目华电国际设备和2个文件夹...默认的布局文件夹和辣油,MDPI 为什么HDPI用辣油,MDPI?
2) I have hdpi device and 2 folders in my project...default 'layout' folder and 'layou-mdpi' Why hdpi use layou-mdpi ?
3)如何正确命名文件夹?布局MDPI正常或布局正常MDPI ...
3) How to name folder correctly ? layout-mdpi-normal or layout-normal-mdpi...
谢谢...
推荐答案
1)我猜测,优先尊重命名convenction这些文件夹,布局-MMC语言,屏幕大小.....等等。但是我没有测试过。所以我认为,屏幕尺寸将首先choosen。
1) I guess that the priority respect the naming convenction for these folders, layout-mmc-language-screensize..... and so. But I don't have tested it. So I think that screen size will be choosen first.
2)布局HDPI使用布局MDPI,因为它是最好的候选者(这是理论上应该适合与华电国际的屏幕更好的文件夹,因版面它是完全通用的)
2) layout-hdpi uses layout-mdpi because it's the best candidate (it is the folder that theoretically should fit better with the hdpi screen, because layout it's totally generic)
3)布局正常MDPI
3)layout-normal-mdpi
这篇关于安卓:支持多屏幕的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!