Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Invert icon color of status bar

I have searched a lot about this but all I have found is how to change status bar color. I want to invert color of icons in status bar on white background like Soundcloud has done in its mobile application like:

enter image description here

How to do this?

like image 516
Shahzeb Avatar asked Jan 31 '16 20:01

Shahzeb


People also ask

How do I change the color of my status bar icon?

Step 1: After opening the android studio and creating a new project with an empty activity. Step 2: Navigate to res/values/colors. xml, and add a color that you want to change for the status bar. Step 3: In your MainActivity, add this code in your onCreate method.

Why has the status bar at the top of my phone gone black?

Cause. A recent update to the Google application caused an aesthetic issue with the font and symbols turning black on the notification bar. By uninstalling, reinstalling, and updating the Google application, this should allow the white text/symbols to return to the notification bar on the home screen.

What are the icons in the Android status bar?

What Are Android Status Bar Icons? Android Status Bar icons are notifications in the graphical user interface (GUI) from apps running on your device. These notifications can contain text, graphics, and even controls.


1 Answers

You can do that with the following code. it's just working on v23 API.

In your: values-v23/styles.xml:

<item name="android:windowLightStatusBar">true</item>

Check this link for more information: https://stackoverflow.com/a/30075921/4409113

Or: https://stackoverflow.com/a/33316669/4409113

like image 78
ʍѳђઽ૯ท Avatar answered Oct 31 '22 18:10

ʍѳђઽ૯ท