Search code examples
androidcolorsdrawablealpha

Android - Drawable filter color on alpha channel


I got some Drawables from Android resources and I want to change their colors and alpha channel to solid (The images have opacity). I tried to use setFilterColor but it just changes the color and the alpha channel is still half transparent. How can I change the opacity too?


Solution

  • I found the class ColorMatrixColorFilter