How to change color of notification icons in status bar android 15? Please find below code:
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.VANILLA_ICE_CREAM) {
getWindow().getDecorView().setOnApplyWindowInsetsListener((view, insets) -> {
int topInset = insets.getInsets(WindowInsets.Type.statusBars()).top;
view.setBackgroundColor(Configuration.getInstance().getPrimaryColor());
view.setPadding(0, topInset, 0, 0);
return insets;
});
}
WindowInsetsControllerCompat wic = new WindowInsetsControllerCompat(getWindow(), getWindow().getDecorView());
wic.setAppearanceLightStatusBars(true);
After using above code font color and icons color is showing black instead of White. How can we change color of icons and text in status bar?
Source: View source