Humty Humty - 7 months ago 42
Android Question

How to change the color of Default Android Phone bar?

I want to change the color of highlighted bar in Android Studio. Can I do it?
enter image description here


You can change it by setting the android:colorPrimaryDark attribute of the style you're using for your app in styles.xml.

For example:

<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
    <item name="colorPrimaryDark">@color/yourCustomColor</item>

For API level 21+ you can also use the Window.setStatusBarColor() method from code.

Check this link out.