Tuesday, June 1, 2010

[android-developers] Theme.Translucent.NoTitleBar.Fullscreen and fullscreen?

When I try to use the Theme.Translucent.NoTitleBar.Fullscreen theme
through xml (or code), I do not actually get a fullscreen experience.
From an application and activity where there is no theme set, I launch
an activity with Theme.Translucent.NoTitleBar.Fullscreen specified as
the theme. The content will properly get a fullscreen amount of room
to work with, but the status bar (with signal, battery, time, etc)
will still be there, obscuring whatever may be at the very top of the
view set for my activity. I tested this both on 2.1 (emulator/device)
and 2.2 (emulator), with and without an application theme.

I have also tried setting the window flags in the onCreate of the new
Activity to force full screen, but have not been able to get the
status bar to go away.

When I change the theme to simply Theme.NoTitleBar.Fullscreen, the
status bar will animate away as the UI transitions to the activity,
but then I cannot seem to make the activity translucent.

My questions are:
Is Theme.Translucent.NoTitleBar.Fullscreen supposed to hide the status
bar?
Alternately is there a way to recreate the translucency that
Theme.Translucent.* provides, allowing me to use a theme that works in
fullscreen and add the translucency manually?

Thanks much,
Mike

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