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
Maybe you can try like this, I had troubles doing it normal way but with "animation" it was ok.
AlphaAnimation alpha = new AlphaAnimation(0.5F, 0.5F); // change values as you want alpha.setDuration(0); // Make animation instant alpha.setFillAfter(true); // Tell it to persist after the animation ends // And then on your imageview yourImageView.startAnimation(alpha);