views:

4453

answers:

2

Is there a way to hide the window title so that it won't get shown in fullscreen mode (

getWindow().setFlags(LayoutParams.FLAG_FULLSCREEN,
       LayoutParams.FLAG_FULLSCREEN)

) but then will appear upon

getWindow().clearFlags(LayoutParams.FLAG_FULLSCREEN)

?

requestWindowFeature(Window.FEATURE_NO_TITLE)

is not an option of course as this won't allow to get it back.

+6  A: 
snctln
Because I need to switch the app from fullscreen to a 'normal' mode with title at some point.
alex
+1  A: 

that is not possible according to the docs and the android-developers google group. to implement that , you need to add a 'title-bar-like' layout item with your text and progress bar and hide/show when you need it. right now - no other way around it, since title bar control can be done only before the setContentView call and not changed after.

Reflog