I have changes my application's status bar color to white, after this status bar icon are not visible.
Asked
Active
Viewed 5,179 times
4
-
I think changing the theme of your app to Dark might help – Ganesh Tiwari Nov 09 '19 at 09:57
-
try something like this – Ganesh Tiwari Nov 09 '19 at 09:59
2 Answers
3
You can try this code. Hope it works for you
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR);
getWindow().setStatusBarColor(Color.WHITE);
}

Maitri
- 513
- 1
- 3
- 14
3
Add your activity style to this
<item name="android:windowLightStatusBar">true</item>
if you need to this programmatically @Maitri's solution is the true one

Eren Tüfekçi
- 2,463
- 3
- 16
- 35