Android Studio - Action Bar remove Android Studio - Action Bar remove xml xml

Android Studio - Action Bar remove


I had this issue too. I went to styles.xml and changed

parent="Theme.AppCompat.Light.DarkActionBar" 

to

parent="Theme.AppCompat.Light.NoActionBar"

and that removed it from all my activities.


in your oncreate() method use this

getActionBar().hide();

If your minSdkVersion is 10 or lower, instead use:

getSupportActionBar().hide();


You can try this. It works for me

Add it in style.xml

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

and use the style at manifest.xml.

android:theme="@style/AppTheme.NoActionBar"