Table of Contents
How to Remove Android App Action Bar – Android Studio
In this tutorial, we discuss How to Remove Android App Action Bar? Previously we have discussed,
- How To Download And Install Android Studio?
- How To Make Android App using Android Studio?
- How to make Android WebView app Android Studio?
Now we start to optimize our WebView app. (How to Remove Android App Action Bar – Android Studio)
How to Remove Android WebView App Action Bar
How to Remove Android App Action Bar – Android Studio
1. Open your project. Open… values > themes > themes.xml . Then add this code below the “<!– Base application theme –>”
<style name="Theme.TechEduTricks" parent="Theme.MaterialComponents.DayNight.NoActionBar">
2. Open your project. Open… values > themes > themes.xml (night) . Then add this code bellow the “<!– Base application theme –>”
<style name="Theme.TechEduTricks" parent="Theme.MaterialComponents.DayNight.NoActionBar">
Your Full code on themes.xml will be like this.
<resources xmlns:tools="http://schemas.android.com/tools"> <!-- Base application theme. --> <style name="Theme.TechEduTricks" parent="Theme.MaterialComponents.DayNight.NoActionBar"> <!-- Primary brand color. --> <item name="colorPrimary">@color/purple_500</item> <item name="colorPrimaryVariant">@color/purple_700</item> <item name="colorOnPrimary">@color/white</item> <!-- Secondary brand color. --> <item name="colorSecondary">@color/teal_200</item> <item name="colorSecondaryVariant">@color/teal_700</item> <item name="colorOnSecondary">@color/black</item> <!-- Status bar color. --> <item name="android:statusBarColor" tools:targetApi="l">?attr/colorPrimaryVariant</item> <!-- Customize your theme here. --> </style> </resources>
To improve your android WebView app performance read kdapz.com‘s other articles also: Android Studio