Humty Humty - 1 year ago 115
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

Answer Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download