Layout Folder Name for 7 "Tablet

I have two layout folders, layout-sw600dpfor 7 "Tablet (1024X600) mdpi, and the other with a name layout-xlargefor 12" Tablet (1280X800) mdpi. The problem is that when I run my project in a 7 "emulator, it draws a layout from layout-xlarge, rather than layout-sw600dp. I also tried other solutions, changing the names of folders that are listed on different sites, but could not find a suitable solution for my problem. Please provide me a working solution for this problem. Thanks in advance.

+5
source share
2 answers

It should be remembered that the use of the resource identifier swXXXdponly works on devices running Android 3.2+ (which has been added). Older devices will not recognize and therefore will not use these identifiers, so you have to use the old ID ( small, normal, large, xlarge), if you plan to support tablets running Android <3.2. Currently, only 0.3% of tablets launch Android 3.1 (API 12), so a secure call does not fully support them - http://developer.android.com/about/dashboards/index.html . p>

There is a great blog explaining how to use these new resource identifiers. http://android-developers.blogspot.com/2011/07/new-tools-for-managing-screen-sizes.html

, , Android 3.2+ , layout-xlarge layout-sw720dp 10 "+ , layout-sw600dp 7" .

+9

. , layout-land/ layout-large, , layout-large-land/ layout-xhdpi-land/. , Android Developers.

, . AVD . , layout-sw600dp/ . , , 4.2, ~ 50dp , , . dp 600.

+1

All Articles