SyntaxFix
Write A Post
Hire A Developer
Questions
You could also use View.setAlpha(float) to change the visibility precisely.
View.setAlpha(float)
0 would be transparent, 1 fully visible. ;)