Manu E Thomas :
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?
Nensi Kasundra :
There is int
argument of setVisibility()
method
public void setVisibility(int visibility) {
throw new RuntimeException("Stub!");
}
There is inbuilt int of this GOne , invible etc...
public static final int GONE = 8;
public static final int INVISIBLE = 4;
public static final int VISIBLE = 0;
Guess you like
Origin http://43.154.161.224:23101/article/api/json?id=349335&siteId=1