Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Galaxy Tab 10 layout qualifiers

I'm developing an app which should work on a phone and on a tablet device. I tested it on the emulator and it worked fine. But when I start it on a real Samsung Tab, it uses the phone layouts. What qualifiers should I use in order to get the tablet using tablets layouts ? I tried with layout-sw600dp but it doesn't work.

Thanks !

like image 863
abecker Avatar asked Sep 22 '12 06:09

abecker


People also ask

What is configuration qualifier in Android?

A configuration qualifier is a string that you can append to a resource directory in your Android project and specifies the configuration for which the resources inside are designed.


1 Answers

Layout selection in Android devices is as follows

layout -> Default (Useful for Phone layouts), layout-large - > 5" to 7" tablets (like Galaxy Note, Kindle Fire etc), layout-xlarge -> above 7" tablets, layout-swdp -> regardless of the screen's current orientation, your application's has at least dps of width available for it UI.(Introduced in Android 3.2 and above , this may be the reson why 600dp dint work for you).

For more details http://developer.android.com/guide/practices/screens_support.html

like image 155
MGK Avatar answered Oct 01 '22 08:10

MGK