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
int
getResources().getDrawable( R.drawable.button );
is now deprecated. Can also do it this way:
((ImageView) findViewById(R.id.my_icon)) .setColorFilter(new LightingColorFilter(Color.BLUE, Color.BLUE));