java - How to set orientation in two different mode , in two layout? -
i have layout called main.xml , set orientation portrait in androidmanifest.xml. designed layout honeycomb , placed in layout-xlarge-mdpi folder, want use main.xml in layout-xlarge-mdpi in landscape orientation.
now, how can this?
thanks
you can place main.xml in layout-xlarge-land, used in landscape orientation
refer supporting multiple screens (using configuration qualifiers)
android supports several configuration qualifiers allow control how system selects alternative resources based on characteristics of current device screen. configuration qualifier string can append resource directory in android project , specifies configuration resources inside designed.
edit: if provide main.xml in layout folder , main.xml in layout-xlarge-land,
for
extra large landscape orientationtakemain.xml layout-xlarge-landfor
all other, in landscape or portrait orientationtakemain.xml layout
refer providing alternative resources more details
Comments
Post a Comment