Hi, You currently have a layout in res/layout/main.xml. Simply create another layout in res/layout-land/main.xml and that's it! res/layout is the default configuration, but you can use layout-port for portrait orientation, layout-land for landscape, layout-fr for a layout when the phone is in French, layout-land-stylus for a layout in landscape on screens that work with a stylus, etc.
All the possible attributes are listed at the end of this document: http://code.google.com/android/devel/resources-i18n.html On Sat, Nov 15, 2008 at 1:08 PM, hodg <[EMAIL PROTECTED]> wrote: > > I was hoping someone might guide me in the best direction. I want to > apply a different layout depending on the orientation of the phone. > For example, when the keyboard is closed, I want to apply > main_vertical.xml. When its in landscape, main_landscape.xml. What > is the best way to do this? > > > -- Romain Guy www.curious-creature.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

