Tuesday, August 14, 2012

[android-developers] Re: How to allow Landscape mode on Transparent / Translucent Activities?

I am only using a small part of the screen, like an ActionBar strip at
the top.

I don't know what to put in the remaining space, so I tried using the
translucent theme to fill it in.

But from the responses, I assume there is no way to dynamically remove
this translucent flag, to allow landscape mode.

On Aug 15, 1:32 am, Dianne Hackborn <hack...@android.com> wrote:
> Why are you making your activity translucent?  If this is to allow the
> launcher to be seen through behind it, you shouldn't let the screen rotate
> if the launcher doesn't want it to -- the launcher has locked the rotation
> because it doesn't want to be rotated.
>
> If you actually are drawing everything in your activity so the launcher
> can't be seen, then why are you using the translucent theme?
>
>
>
>
>
>
>
>
>
> On Tue, Aug 14, 2012 at 2:47 PM, I.E. <inib...@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
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate