If you follow that link you posted, you'll see a table that lists constant 
names, their values, and an explanation of each, associated with the 
attribute 'visible'.

Whenever you see something like this -- NEVER, EVER, put the values in your 
code. Put the constants there. The only reason for documenting the values 
for the constants is to help you in debugging.

Now, it happens that that table isn't the right table for  your purposes. 
That is not documentation of View.setVisibility(), but rather documentation 
of R.attr.visibility.

And the values are different.

Look at the actual documentation for the function you are calling:

http://developer.android.com/intl/de/reference/android/view/View.html#setVisibility(int)

Supply one of the constants listed there: View.VISIBLE, View.INVISIBLE, or 
View.GONE.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to