Re: [android-developers] Re: Change UI when executing an instruction

2011-05-01 Thread Bob Kerns
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 doc

Re: [android-developers] Re: Change UI when executing an instruction

2011-04-30 Thread Dianne Hackborn
No do iconView.setVisibility(View.VISIBLE). Don't just make up numbers. On Sat, Apr 30, 2011 at 4:11 PM, Alaeddine Ghribi 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:vi

Re: [android-developers] Re: Change UI when executing an instruction

2011-04-30 Thread Alaeddine Ghribi
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/re

Re: [android-developers] Re: Change UI when executing an instruction

2011-04-30 Thread Kostya Vasilyev
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.wordpr

Re: [android-developers] Re: Change UI when executing an instruction

2011-04-30 Thread Alaeddine Ghribi
Excatly that's the problem, i didn't notice it, i just copied it from my previous project :P ! However, i want to set the image to show after a period, i've maked this: public void onRegistrationDone(String localProfileUri, long expiryTime) { updateStatus("Registered to ser

Re: [android-developers] Re: Change UI when executing an instruction

2011-04-30 Thread Kostya Vasilyev
30.04.2011 23:04, Alaeddine Ghribi пишет: I have a problem, the image is not showing even when deleting "visibility" ? Have i a problem with the XML file ? Yes. The view that's above the ImageView is set to fill_parent height, so it takes the entire height of the screen, leaving no room for t

[android-developers] Re: Change UI when executing an instruction

2011-04-30 Thread Alaeddine Ghribi
I have a problem, the image is not showing even when deleting "visibility" ? Have i a problem with the XML file ? Thank you. On 30 avr, 17:06, Dianne Hackborn wrote: > First thing is to actually use one of the correct constants in > View.setVisibility() -- such as View.VISIBLE. > > On Sat, Apr 30

Re: [android-developers] Re: Change UI when executing an instruction

2011-04-30 Thread Dianne Hackborn
First thing is to actually use one of the correct constants in View.setVisibility() -- such as View.VISIBLE. On Sat, Apr 30, 2011 at 11:35 AM, Alaeddine Ghribi < alaeddineghr...@gmail.com> wrote: > I've made this: > public void onRegistrationDone(String localProfileUri, long > expiryTime) { >

[android-developers] Re: Change UI when executing an instruction

2011-04-30 Thread Alaeddine Ghribi
I've made this: public void onRegistrationDone(String localProfileUri, long expiryTime) { updateStatus("Registered to server."); Log.d("SUCCEED","Registration DONE"); ImageView iconView = (ImageView) findViewById(R.id.connecte