0

hello i have to remove actionBar into an activity, this is my style:

<style name="AppTemaGiornoFullScreen" parent="@style/Theme.AppCompat.Light.DarkActionBar">
    <item name="android:windowActionBar">false</item>
    <item name="android:windowNoTitle">true</item>        
</style>

this work very well into android 4x, but into an 2x emulator actionBar is always visible.. why?

fabio
  • 271
  • 5
  • 18

1 Answers1

0

You can hide it programatically from the Activity itself using this line of code in your OnCreate method after setContentView line

getActionBar().hide(); 

If you are using tabs activity, use this:

getParent().getActionBar().hide(); 

This is a similar question .. Link


If you are asking about hiding the TitleBar programatically..Add the following lines on your onCreate before setContentView line

this.requestWindowFeature(Window.FEATURE_NO_TITLE);

This is a similar question .. Link

Community
  • 1
  • 1
Sami Eltamawy
  • 9,874
  • 8
  • 48
  • 66