Frame91
Frame91

Reputation: 3799

Hide navigation bar, but show Actionbar in Android 3.0 >

I'm trying to hide the navigation bar (where battery status, time, notifications and other stuff is shown), but I want to keep the actionbar.

How can I manage it?

 <item name="android:windowNoTitle">true</item>

This method hides everything...

Thank you!

Upvotes: 0

Views: 409

Answers (1)

Frame91
Frame91

Reputation: 3799

Found it myself:

// Hide the Status Bar
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);

From another question (android - How to Hide the stausbar)

Upvotes: 1

Related Questions