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 orientation take main.xml layout-xlarge-land

  • for all other, in landscape or portrait orientation take main.xml layout

refer providing alternative resources more details


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -