Alex Rivera | Logout

Hiding Title in a Fullscreen mode?

Asked 2009-06-13T23:28:52.383
26

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.

Edit
Report

1 Answer

1

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.

answered 2009-06-14T12:56:32.300

Your Answer