Is it some kind of analog level-list for colors on Android?

I am trying to find a way to give the user the ability to switch between different color schemes (including different colors and images). All schemes are predisposed, that is, compiled and located inside the application. As I can see, for the drawings, I can do this using a list of levels, where each level corresponds to one scheme. But what about colors? Is there a way to do the same for flowers? Or maybe there is a better way to switch color schemes?

+3
source share
2 answers

You can use the built-in mechanism of styles and themes.

+1
source

ColorStateList, getResources().getColorStateList(id)

+1

Source: https://habr.com/ru/post/1789764/


All Articles