I am using a linear layout and frame layout. In the linear layout I keep an image as background and in the frame layout I keep an imageView. In that imageView I give an image.>
The method setAlpha(int) from the type ImageView is deprecated.
setAlpha(int)
Instead of
image.setImageAlpha(127); //value: [0-255]. Where 0 is fully transparent and 255 is fully opaque.