How to change the color of the status bar in the launcher?

560 Views Asked by At

I need to make the status bar black. How can I do this by editing launcher's XML files?

2

There are 2 best solutions below

7
AudioBubble On

You can't effect the color of the status bar with Trebuchet Launcher. Just something similar like the drawer style since Version Marshmallow +. Even the mentioned Android 4.4 Kitkat (CM11) is too low for that.

For further accessibility for layout settings you can either download matching versions of Trebuchet or use third party launchers like Action Launcher and Nova Launcher.

4
The Codepreneur On
        <item name="android:statusBarColor" tools:targetApi="l">? 
attr/colorPrimaryDark</item>

Add this to the style used by the activity. That should change the statusbarcolor.

Remember that you can add any color of your choice.

you can find that from the theme.xml. You can know which specific style to edit by checking out the AndroidManifest and check the `android:theme.