Is there a way to change programmatically the primary colors. I would like to do it in code depending on the screen/state of the app.
Currently I can only set the colors in the theme (static) :
<item name="android:colorPrimary">@color/primary_color</item>
<item name="android:colorPrimaryDark">@color/dark_color</item>
<item name="android:colorBackground">@android:color/white</item>
<item name="android:colorAccent">@color/primary_color</item>
<item name="android:colorControlHighlight">@color/primary_color</item>