Set alpha
suggest change“alpha” is used to specify the opacity for an image.
set alpha using XML attribute:
android:alpha="0.5"
Note: takes float value from 0 (transparent) to 1 (fully visible)
set alpha programmatically:
imgExample.setAlpha(0.5f);
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents