From what I have seen, doing this causes your app to have the same orientation policies as the visible app behind it... That is, if the app behind it is locked in portrait, then that is what your app will be. If it is locked in landscape, then your app will run in landscape. If it allows for rotation then your app will also rotate.
Due to the way Android handles rotation I don't think this behavior can be changed.
Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware
On Tue, Aug 14, 2012 at 3:47 PM, I.E. <inibehe@gmail.com> wrote:
Suppose I have an Activity that uses the transparent theme:
android:theme="@android:style/Theme.Translucent" in the
AndroidManifest.xml.
When my Activity is launched from the Home Screen, most commercial
phones will lock it to Portrait mode only. This is probably because
the Home Screen only runs in Portrait mode, and applying the
Translucent theme to my Activity makes it also lock to Portrait mode.
But I would like to run my Activity in Landscape mode as well. Is this
possible?
For example, is there a way to dynamically remove the Translucent flag
when a landscape orientation change is detected?
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
No comments:
Post a Comment