In this tutorial we would learn how to remove action bar in android application. This is very basic tutorial. We already know how to remove title by using requestWindowFeature(Window.FEATURE_NO_TITLE); however, when the application starts, the action bar appears on the top side of application. For example look at below snapshot.

how to remove action bar in android application

We can use getSupportActionBar().hide(); api to hide the ActionBar.

now when we run the example code there would be no Actionbar in our application. In each activity before setting setContentView , we have to hide ActionBar by getSupportActionBar().hide();

Other Way to hide or remove ActionBar

Edit styles.xml and add  below

In the above file (styles.xml ) , the name of style is AppTheme. We can use this theme by mentioning inside AndroidManifest.xml. By declaring android:theme=”@style/AppTheme” >


Related Contents to follow