I'm writing an app that should support both phones and tablets.
I created layout-sw600dp layout-large
folders under res
, and also added support-screens
in AndroidManifest.xml
, but it seems that the emulator always loads the layout file activity_main.xml
under layout
folder.
<supports-screens
android:smallScreens="true"
android:normalScreens="true"
android:largeScreens="true"
android:xlargeScreens="true"
android:anyDensity="true"/>
I also found some related topics, but didn't get an answer there.
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
Is the issue with emulator or anything else I need to fix?