【发布时间】:2015-11-23 21:05:42
【问题描述】:
我正在编写一个应该支持手机和平板电脑的应用程序。
我在res下创建了layout-sw600dp layout-large文件夹,还在AndroidManifest.xml中添加了support-screens,但是模拟器似乎总是在layout文件夹下加载布局文件activity_main.xml。
<supports-screens
android:smallScreens="true"
android:normalScreens="true"
android:largeScreens="true"
android:xlargeScreens="true"
android:anyDensity="true"/>
我也找到了一些相关的话题,但没有得到答案。
Android Emulator loading wrong layout screen sizes
Why does Android's Nexus 7 virtual device not load my "large" layout resources?
Android stretches the layout file instead of loading the correct file in the res folders
是模拟器的问题还是我需要解决的其他问题?
【问题讨论】:
标签: android android-layout android-studio android-emulator