I think you can actually just use Drawable.setColorFilter( 0xffff0000, Mode.MULTIPLY )
. This would set white pixels to red but I don’t think it would affect the transparent pixels.
More Related Contents:
- How can I create the following UI in Android to be used in the bottom of a View?
- How to convert a Drawable to a Bitmap?
- Different resolution support android
- Android getResources().getDrawable() deprecated API 22
- Mipmaps vs. drawable folders [duplicate]
- Mipmap drawables for icons
- Storing R.drawable IDs in XML array
- Get the ID of a drawable in ImageView
- How to reference style attributes from a drawable?
- Getting Bitmap from vector drawable
- Add ripple effect to my button with button background color?
- Using android vector Drawables on pre Lollipop crash
- How to fix: android.app.RemoteServiceException: Bad notification posted from package *: Couldn’t create icon: StatusBarIcon
- Setting drawable folder to use for different resolutions
- Standard Android menu icons, for example refresh [closed]
- Programmatically set left drawable in a TextView
- Vertical line using XML drawable
- Android Studio: Drawable Folder: How to put Images for Multiple dpi?
- Drawable image on a canvas
- Understanding Android’s
- How to upload an image in parse server using parse api in android
- Custom ProgressBar
- PhoneGap Android: How to force Application to use icons from asset\www\res instead res\drawable folder?
- Android Background Drawable Not Working in Button Since Android Studio 4.1
- Style bottom Line in Android
- Add gradient to imageview
- How to remove Black background between start new activity during slide_left animation?
- Changing color in a shape inside a layer-list programmatically
- Creating & Using 9-patch images in Android
- How to set a gradient background to a Material Button?