No do iconView.setVisibility(View.VISIBLE). Don't just make up numbers. On Sat, Apr 30, 2011 at 4:11 PM, Alaeddine Ghribi <[email protected] > wrote:
> Sorry but i'm not understanding your point. If i make iconView.VISIBLE i > have an error(sorry for my mis-understood).In the XML file i have to do like > android:visibility="visible" and in the JAVA code i normally make > iconView.setVisibility(1); > ? As pointed in the doc: > http://developer.android.com/reference/android/R.attr.html#visibility > <http://developer.android.com/reference/android/R.attr.html#visibility>Sorry > another time :\ . > > 2011/4/30 Kostya Vasilyev <[email protected]> > >> As was already pointed out by Dianne, View.setVisibility() uses constants, >> like View.GONE and View.VISIBLE - not arbitrary values like 0 or 1. >> >> -- Kostya >> >> 30.04.2011 23:56, Alaeddine Ghribi пишет: >> >>> iconView.setVisibility(1); >>> >> >> >> -- >> Kostya Vasilyev -- http://kmansoft.wordpress.com >> >> -- >> You received this message because you are subscribed to the Google >> Groups "Android Developers" group. >> To post to this group, send email to [email protected] >> To unsubscribe from this group, send email to >> [email protected] >> For more options, visit this group at >> http://groups.google.com/group/android-developers?hl=en >> > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- Dianne Hackborn Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

