Android: Standard icons android.R.drawable with other color
-
13-07-2021 - |
Frage
Most of the standard icons of Android in android.R.drawable
are gray in color.
I want to use them in other color, that match to my app colors. And I don't want to create copy of these icons and paint them in Photoshop or any painting application.
Is there any way to change their color in the code?
Lösung
Yes, it's possible with Drawable.setColorFilter, here's a related tutorial.
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow