Friday, August 20, 2010

[android-developers] Toggle Button state programatically

Hi

I am trying to toggle button state programatically. I want to go
between setEnabled(False) and setEnabled(True) for a given duration. I
have a timer and I want to toggle between these states at regular time
intervals.

I see that the button toggles correctly the first time, for e.g. from
True state to False state, but doesn't go back to True state again
unless I touch the button, which is kinda weird. Can someone help me
on this?

Thanks,

Abhi

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate