SyntaxFix
Write A Post
Hire A Developer
Questions
For a view you can set opacity by the following.
view_name.setAlpha(float_value);
The property view.setAlpha(int) is deprecated for the API version greater than 11. Henceforth, property like .setAlpha(0.5f) is used.
view.setAlpha(int)
.setAlpha(0.5f)