Skip to content Skip to sidebar Skip to footer

How Can I Restore The Default Status Bar Color?

In one of my activities, I don't want the status bar to have any color. I want it to stay in whichever color the is before my app is ran. I can change it to black, but black isn't

Solution 1:

By default title bar is colored using colorPrimaryDark (docs here, see pic below). Or when you look at Material theme:

<item name="statusBarColor">?attr/colorPrimaryDark</item>

You should also see this posts

enter image description here

Post a Comment for "How Can I Restore The Default Status Bar Color?"