In my app I want to change the ImageView like the following. I want only to change the image on the body.

I have followed the following link to change the alpha values by using the code like that
imageView.setAlpha(255);
But it is not working.
How to Set Opacity (Alpha) for View in Android. Please anybody suggest me how to do that.
Or, without using animation you can just use setAlpha(float alpha) on your ImageView.
It might be because setAlpha(float Alpha) has been deprecated as of API level 16 by setImageAlpha(float Alpha)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With