Removing title head from App in Android Studio

Today we are going to demonstrate how to remove title head from Android App.

As you are seeing pic we want to remove RX Title Head from App. For doing that we have to change some settings in our Project in Android Studio.

1) In Style xml change

<style name="SplashTheme" parent="Theme.AppCompat.Light.ActionBar">

To the following code.

<style name="SplashTheme" parent="Theme.AppCompat.Light.NoActionBar">

Just need to write Light.NoActionBar

Whole code is following…….

<resources>
<!-- Base application theme. --><style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
<!-- Customize your theme here. --> <item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
</style>

<style name="SplashTheme" parent="Theme.AppCompat.Light.NoActionBar">
<!-- Customize your theme here. --> <item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
<item name="android:windowBackground">@drawable/splash_activity_background</item>
</style>

</resources

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

Corona VirusCorona Virus

चीन के वुहान शहर से दुनियाभर में फैल रहे जानलेवा कोरोनावायरस को लेकर जगह-जगह विशेषज्ञों द्वारा शोधकार्य और अध्ययन किए जा रहे हैं। इस वायरस से अकेले चीन में मरने वालों की