I need to make an activity appear such that the activity remains full screen (no title bar) but with the Action Bar present.
App uses Holo Light for its interfaces.
Is there such a style/theme?
To use a Holo theme, explicitly request one from your manifest on your activity or application element, e.g. android:theme="@android:style/Theme. Holo" . Your app will be displayed using the unmodified theme on all compatible Android 4.0 devices.
If you want to hide Action Bar from the entire application (from all Activities and fragments), then you can use this method. Just go to res -> values -> styles. xml and change the base application to “Theme. AppCompat.
Holo, or Holo theme, is a standard theme for Android apps that Google first introduced with Android 3.0 Honeycomb. The company requires manufacturers to include the unmodified Holo theme in Android 4.0 or higher devices if they want to integrate Android Market on their device.
I had the same "issue" and what I do is basically the good old way:
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
This combined with the normal Theme.Holo
results in an UI with Actionbar but no Notification area.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With