Wait, it is not a duplicate
A similar question has been asked here, but not addressing dark-text status bar.
What I want to do
I want to achieve 3 things at the same time:
- Transparent status bar (Not hiding it!)
- Dark-text status bar
- Opaque (or black) navigation bar (which does not let activity content inflate underneath it)
What I have tried
The solution
getWindow().getDecorView().setSystemUiVisibility(
View.SYSTEM_UI_FLAG_LAYOUT_STABLE
| View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN);
can only achieve 1 and 3;
The solution here can only achieve 1 and 2;
And the solution here can only achieve 2 and 3....
The Question
So is there a way to achieve all 1, 2 an 3?!
The solution here can only achieve 1 and 2
But in that answer navigation bar is transparent and activity's content is drawn beneath of it. Whereas you have told that you wantOpaque (or black) navigation bar (which does not let activity content inflate underneath it)
. You requirement is not quite clear. – Jeu