How to change the Action Bar/App Theme in Android App on Android Studio Platform

Aishwarya Rao
2 min readJul 7, 2020

Remove the predefined Action Bar or App Theme in android

In this article, I will be explaining how to remove the action bar in the native android platform so that one can replace it with any other customised headers.

Android App with Action Bar

This is the view of my android app and not always the Action bar looks good with the layout of the app. So, to remove the predefined theme, there are two simple changes that need to be done: one is to create a new theme and the other to assign it in our XML file.

After creating your android app, open the AndroidManifest.xml file (Project→app →manifests), you can see in the file the following code in <application>tag.

What needs to be changed in AndroidManifest.xml

The highlighted part in the above image is what we need to replace our customized bar. To do that first we go to our Styles.xml file (app→res→values) and add a new style. Make sure you add the style name as “AppTheme.+Name”, as mentioned below. You can add any type of style, I’m simply removing the action bar here.

Defining and declaring a new Action Bar

Next, in AndroidManifest.xml replace the theme with the one you mentioned in Styles.xml while defining your customised theme. Now when you re-run the app your action bar will disappear and you can customize the header in the layout.xml file as per requirement.

Final Output with no Action Bar and customised header

--

--