Humty Humty - 1 month ago 4
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.