Visibility Timing

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

Visibility Timing

Postby ramgraph1 » Mon Mar 31, 2008 4:31 am

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();
}
ramgraph1
Experienced Developer
Experienced Developer
 
Posts: 68
Joined: Wed Jan 09, 2008 10:03 pm

Top

Postby plusminus » Thu Apr 10, 2008 11:37 pm

Hello ramgraph,

please rephrase your question, I'm not sure whether I got it right.

Regards,
plusminus
Image
Image | Android Development Community / Tutorials
User avatar
plusminus
Site Admin
Site Admin
 
Posts: 2688
Joined: Wed Nov 14, 2007 8:37 pm
Location: Schriesheim, Germany

Postby ramgraph1 » Fri Apr 11, 2008 3:18 pm

Actually, I solved it using a Handler. Thanks for the offer to help, though!
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 25 guests