I have checked the android docs for setVisibility(). It shows that
setVisibility(int value)
So as far as I know it means that setVisibility() accepts an integer value as input. But in one of the java codes, I found that it was written as
setVisibility(view.Visible)
This means it takes a view type as input. But how's that possible. I can't understand the logic behind this. Can anyone help in sort out this?