1

I am trying to hide the status bar. I have tried the following things. This is for phones. I realize tablets can be different. It does hide the status bar when the layout has a bottom Tab. any ideas?

android:theme="@android:style/Theme.NoTitleBar.Fullscreen"

In the Manifest.XML I have added the above code.

And in the onCreate() I have added the followingin the right place:

requestWindowFeature(Window.FEATURE_NO_TITLE);
// hide statusbar of Android
// could also be done later
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
        WindowManager.LayoutParams.FLAG_FULLSCREEN);
Kromster
  • 7,181
  • 7
  • 63
  • 111
user1120680
  • 93
  • 3
  • 14
  • what does the mean of bottom tab ? – Akarsh M May 31 '13 at 14:56
  • I would like to hide the status bar (where the battery indicator and stuff is) my Home screen has a Tabbed layout and Full screen hiding the status bar works there. but in other screens without a Bottom tab bar it doesn't work – user1120680 May 31 '13 at 15:04
  • Ok seems to be working now. Full reboot of computer and now it's working? – user1120680 May 31 '13 at 15:31
  • doesn't work for me, using kitkat on Nexus5. All it does is render my main activity white background to transparent – Bachalo Dec 24 '13 at 15:34
  • you can find the answer [here][1] . it works like charm. Hope it helps [1]: http://stackoverflow.com/questions/25284233/prevent-status-bar-for-appearing-android-modified/25397029?noredirect=1#comment50756233_25397029 – Abhimaan Jul 14 '15 at 06:49

0 Answers0