[android-developers] How can Button clicks be sent to a View that has been disabled?
I'm finding that some of my users are occasionally getting a button
firing twice in rapid succession (less than 100 millis) even though
the first thing the handler does is to disable the button. ie
button.addOnClickListener(new OnClickListener() {
public void onClick(View view) {
button.setEnabled(false);
// do some stuff.
}
});
Is this expected behaviour?
Ie that the InputEvents (button clicks) stack and will be sent to a
View even though the View is disabled?
William
--
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