I need to make the status bar black. How can I do this by editing launcher's XML files?
-
AFAIK you cannot affect the color of the status bar in the launcher app, unless your app is the launcher app.CommonsWare– CommonsWare2021-03-07 19:43:46 +00:00Commented Mar 7, 2021 at 19:43
-
My Android version is Kitkat 4.4, which has transparent status bar on home/unlock menu. How can i change the color of that?Griesur– Griesur2021-03-07 19:50:55 +00:00Commented Mar 7, 2021 at 19:50
2 Answers
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.
7 Comments
<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.