Android的 - 布局大文件夹被忽略 [英] Android - layout-large folder is been ignored
问题描述
我有不同的布局文件 不同的屏幕尺寸就像
I have different layout files for different screens size like
文件夹结构:
- 布局
- 在布局大
-
布局小
- layout
- layout-large
layout-small
对于像HVGA和QVGA有仿真器 是没有问题的,各个 被吹罚layout.xml文件。但 布局 - 大文件夹被忽略 当我运行的模拟器 WVGA(为480x854),这里是指 的布局文件夹 应用。请点我的 正确的方向是正确的方式来 处理这种情况。
For emulators like HVGA and QVGA there is no problem, the respective layout.xml file being refereed. But the layout-large folder is ignored when I run the emulator of WVGA(480x854) , here it is referring the "layout" folder of the application. Please point me to the right direction which is right way to handle this situation.
我尝试使用
布局大华电国际布局大MDPI布局大LDPI 布局正常华电国际布局正常MDPI布局正LDPI
layout-large-hdpi layout-large-mdpi layout-large-ldpi layout-normal-hdpi layout-normal-mdpi layout-normal-ldpi
和在AndroidManifest.xml我 指定
And in the AndroidManifest.xml I specified
<supports-screens
android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true" />
但没有成功。
but no success
推荐答案
你检查,如果你的API级别已经支持呢?我有这个问题为好。在我来说,我用下面的清单,其中设置TargetSDK 4(1.6),在这些不同的布局的支持下开始了线。
Have you checked if your API Level is already supporting this? I had this issue as well. In my case I used following line in the manifest, which set the TargetSDK to 4 (1.6), where the support of those different layouts started.
<uses-sdk android:minSdkVersion="3" android:targetSdkVersion="4" />
链接:
屏支持
Links:
Screen Support
这篇关于Android的 - 布局大文件夹被忽略的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!