Hi,

You can add res/layout-land and put your landscape layout there.  So
basically you have res/layout for portrait and res/layout-land for landscape
layouts.

Marc


On Wed, Jun 3, 2009 at 12:57 PM, beekeeper <[email protected]> wrote:

>
> I'm trying to write a set of widgets and, in contrast to too many of
> the widgets being put on the market, I'm trying to actually conform to
> the widget design guidelines (http://developer.android.com/guide/
> practices/ui_guidelines/widget_design.html<http://developer.android.com/guide/%0Apractices/ui_guidelines/widget_design.html>).
>  Unfortunately, in order
> to do this properly and look right, the widget needs to be able to
> instantly change layouts when the screen changes orientation from
> portrait to landscape.
>
> Thus far, the *only* way that I've found to detect and react to the
> orientation change is to keep a service running at all times with an
> "onConfigurationChanged" method that updates the widget in a timely
> manner.  Unfortunately, this leaves an expensive process constantly
> cluttering up memory and pretty much defeats the broadcast-based
> design of the widget mechanism.
>
> It seems that there's got to be a better (and more efficient) way to
> meet this basic requirement.  Am I missing something obvious?
>
> -Robert
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to