I need to find a way to change the color of bitmap in Android. I need to replace/change colors of oval image smoothly in my application depending on int
value. I ne
This is how I solved this issue :
ImageView
with src="@drawable/button"
Drawable
and set ColorFilter
to it and after that use it as src to your declared ImageView
like this :>
Drawable myIcon = getResources().getDrawable( R.drawable.button );
ColorFilter filter = new LightingColorFilter( Color.BLUE, Color.BLUE );
myIcon.setColorFilter(filter);
color.setImageDrawable(myIcon);