Awesome, this is exactly what I needed, thanks :D On Sep 6, 1:33 pm, Mark Murphy <[EMAIL PROTECTED]> wrote: > Scoz wrote: > > Currently trying to have a dialog that will allow the user to sign in > > to a service using a Webview. Using a simple LinearLayout works while > > while the phone is held in portrait mode, with the message and button > > on top leaving a nice squareish webview. When switching in to > > landscape mode though I end up with an unusably low height webview as > > the message and button are still on top. > > > Is there any way to specify a layout based on the current orientation? > > Sure. Put one layout in res/layout and another in res/layout-land. Here, > layout-land effectively means "use this layout when the device is in > landscape orientation". > > When the device is rotated, your current activity will be closed > (shortly after onSaveInstanceState() is called) and then restarted with > the appropriate layout set. Reload your widgets from the instance state > supplied to onCreate()/onRestoreInstanceState(), and you're set. > > -- > Mark Murphy (a Commons Guy)http://commonsware.com > _The Busy Coder's Guide to Android Development_ Version 1.1 Published!
--~--~---------~--~----~------------~-------~--~----~ 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] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

