No. I expected that for a Button (especially) that setting
enabled=false would also set clickable=false.
I haven't come across a UI paradigm yet where that hasn't been the
case.


On Jul 8, 5:15 pm, Filip Havlicek <havlicek.fi...@gmail.com> wrote:
> Did you try setting setClickable(false) as well?
>
> 2011/7/8 William Ferguson <william.ferguson...@gmail.com>
>
> > Has no one seen an incidence of this occurring?
> > I would have said flat out it can't occur except that I see a couple
> > of instances each day.
>
> > Does this mean that all handler code needs to explicitly check to see
> > if a button is enabled first before executing its action?
>
> > On Jul 7, 10:31 am, William Ferguson <william.ferguson...@gmail.com>
> > wrote:
> > > 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+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en

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

Reply via email to