The color of an Activity needs to become changed during runtime. Setting the color of the ToolBar and StatusBar, text colors, etc. programmatically works fine.
Also altering the color of the NavIcon works fine.
final Drawable immutableNavIcon = toolbar.getNavigationIcon();
if (immutableNavIcon != null) {
Drawable navIcon = immutableNavIcon.mutate();
navIcon.setColorFilter(foregroundColor, PorterDuff.Mode.SRC_ATOP);
toolbar.setNavigationIcon(navIcon);
}
How to change also the ripple color of the NavIcon?
Use this theme in your toolbar..
see here background ripple effect