Or, just somewhere in your onCreate() for your activity, you can find
out the current orientation (see
getResources().getConfiguration().orientation ), and pick your Layout
from there.

You should also set android:screenOrientation="sensor" in your
AndroidManifest.xml, if you want to be notified of sensor-based
orientation changes, see onConfigurationChanged() in Activity for how
to handle this event.

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