The easiest way of showing a different layout based on orientation is to build it into your resources folders, and there is no extra code needed. Here's an example of how I use two different layouts depending on portrait or landscape:
http://code.google.com/p/connectbot/source/browse/trunk/connectbot/res/layout-port/item_host.xml http://code.google.com/p/connectbot/source/browse/trunk/connectbot/res/layout-land/item_host.xml (Notice how it uses two different directories, "layout-port" and "layout-land". Android automatically picks the right layout from the /res/ folder at runtime.) Here's more detail on all the configuration tags types available: http://d.android.com/guide/topics/resources/resources-i18n.html -- Jeff Sharkey [email protected] --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

