Currently in my FragmentActivity
, I hide the status bar by, in the onCreate
method, doing the following:
requestWindowFeature(Window.FEATURE_NO_TITLE);
getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
this works no problem.
But in full screen, say user clicks a button, I will want to swap in another fragment (remember we are in FragmentActivity
), I mean replacing the currently fragment that is displayed in full screen.
but I want the titlebar/status to be shown.
Is this possible? If so, how can I do it programmatically