Visibility Timing

Put your problem here if it does not fit any of the other categories.

Visibility Timing

Postby ramgraph1 » Tue Apr 08, 2008 10:47 pm

I have some buttons that I want to have become invisible as soon as they are clicked and before they rest of the code that they start has been executed, but I have not been able to do this - instead my activity executes all of the code under that button and then makes the button invisible. How can I force the timing of the buttons' visibility?
Here is the code I am using:

Code: Select all

if (v.equals(next)){
          next.setVisibility(View.INVISIBLE);
          pagenumber ++;
          getContent();
}

Any ideas how to fix this? To me it is very weird that the first line is executed after everything the last line leads to is executed.

[I found I posted this in the tutorials section by mistake so am reposting here...]
ramgraph1
Experienced Developer
Experienced Developer
 
Posts: 68
Joined: Wed Jan 09, 2008 10:03 pm

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 26 guests