As the title says, how do I change the status bar icons\' color to have a dark tint instead of the default white.
FROM
TO>
For the status bar icons' to have a dark tint instead of the default white, add the following tag in your styles.xml (or more precisely in values-v23/styles.xml) file:
- true
You can also change the flag at runtime by setting it to any View:
View yourView = findViewById(R.id.your_view);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
if (yourView != null) {
yourView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR);
}
}
If you want to reset the changes, clear the flag like this:
yourView.setSystemUiVisibility(0);