We saw earlier how to convert a black icon into a color to match our app or current activity using tinting. With other images, there are times when they take up a considerable amount of the screen, and we want to apply the reverse and have our icons colored so that they match our graphics. Fortunately, Android provides a support library to extract prominent and dominant colors from any bitmap.
General drawables
The palette library
Applying our own themes to our apps can produce very stylish-looking interfaces, especially when we are dealing with text, icons, and images we created ourselves to suit the app. Many apps incorporate the user's own images and, in these cases, there is no way of knowing in advance how to select...