I have a doubt in android.I am using layout-land for the landscape view and layout-large for the tablets,when I am using tablets which layout will be taken by the android system, layout-land or large? In what basis it will take the layout.Please explain.
Thanks.
If you have provided resources for large
and for land
(with the same resource ID) the large
will have precedence over land
. That means on a tablet you will always get the large
resources independent of orientation.
If you need separate resources for landscape on the tablet you can use the qualifier large-land
Details can be found in the android developer docu
Have a look here.
res/layout/my_layout.xml // layout for normal screen size ("default")
res/layout-small/my_layout.xml // layout for small screen size
res/layout-large/my_layout.xml // layout for large screen size
res/layout-xlarge/my_layout.xml // layout for extra large screen size
res/layout-xlarge-land/my_layout.xml // layout for extra large in landscape orientation
As per the screen size,your layout is choosen. Here all the my_layout.xml files resides in all layout folder. The perfect layout is choosen by the screen size.
For more info visit to:
http://developer.android.com/guide/practices/screens_support.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With