-
Changing Android SwitchCompat colors programmatically in Java (at Runtime)
In my Daily Wallpaper app, recently ported to Android, I wanted to use the Palette API to customize the colors of the UI depending on the day’s image. Instead of hard-coding one particular set of colors for my theme, which have the potential to conflict with whatever photo we receive from Bing that day, we…