Android

How to Remove Android App Action Bar – Android Studio

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,

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 bellow 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 another articles also: Android Studio

Danushka Sanjeewa

Danushka Sanjeewa is a Software engineer with more than 5 years of experience in Android App Development, Web Development, Marketing, Graphic design, Video editing, and WordPress. And also Writer/Founder of TechEduTricks.com.

Leave a Comment