Statusbar - How to achieve white background and black icons?
See original GitHub issueJust can’t seem to get it right.
I have
<color name="primary_dark">#ffffff</color>
In my colors.xml to make the background white, but the icons are also white.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:7
Top Results From Across the Web
How can I make the status bar white with black icons?
With Android M (api level 23) you can achieve this from theme with android:windowLightStatusBar attribute. Edit : Just as Pdroid mentioned, this can...
Read more >How to change white background with black icon of actionbar and ...
How to change white background with black icon of actionbar and statusbar in Android? 488 views 1 year ago. Groodeals. Groodeals. 56 subscribers....
Read more >The status bar icons have turned black ONLY on the home ...
The first suggested fix worked. Long press on the home screen and then select settings, then uncheck personalized updates. This restored the icons...
Read more >Android – How to make the status bar white with black icons
With Android M (api level 23) you can achieve this from theme with android:windowLightStatusBar attribute. Edit : Just as Pdroid mentioned, this can...
Read more >Setting Android Status Bar Background & Icon Colors
Modern apps will set the status bar to match the background color when toggling between light and dark. Since we are allowing the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
To getting white background and black icons (dark-content), you will need to change the following file:
android/app/src/main/res/values/styles.xml
Add the code bellow:
Add colorPrimaryDark item in your current splash theme in styles.xml :
Add inside ressources in colors.xml:
<color name="statusbar_bg">#FFFFFF</color>
Then use it as a second parameter while showing SplashScreen in MainActivity.java: