I have enabled SYSTEM_UI_FLAG_IMMERSIVE_STICKY
in my app but it seems that the default behavior makes the navigation and notification bar transparent. Is there any way to set the custom color to status bar and navigation bar (or retain system default which is black?)
Asked
Active
Viewed 427 times
2

Coder
- 3,090
- 8
- 49
- 85
-
I assume you already have tried [`statusBarColor`](http://stackoverflow.com/a/22192691/1083957), right? – azizbekian Apr 25 '17 at 09:33
-
I have tried that but it does not work for API 19. It only sets statusbar color not the navigation – Coder Apr 25 '17 at 10:25
-
Maybe this [page](https://developer.android.com/training/material/theme.html) can help you. – hashiCode Apr 25 '17 at 11:11
-
I have setup the theme as per the guidelines and it works perfectly if I dont use Immersive mode. The colors are lost only in Immersive mode – Coder Apr 25 '17 at 13:19