If it is the problem that Doug mentioned, then one thing I did in a similar
situation is to set the following attributes to false on the checkbox:

- focusable
- focusableInTouchMode
- clickable

Then I let the listview itself handle all the events.  If you get a single
click, pogrammatically toggle the checkbox.  If you get a swipe, do whatever
it is that you want to do for that, etc...

If it is not the problem that Doug mentioned then I have no clue how to fix
it.

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Sat, May 21, 2011 at 7:59 PM, Doug <[email protected]> wrote:

> On May 18, 3:06 pm, Wall-E <[email protected]> wrote:
> > I'm also noticing that in my layout that I inflate inside the
> > ListView, if I include a CheckBox, the behavior for the onClick for
> > the ListView isn't working, meaning, usually when you click/touch the
> > item in the ListView, it will be highlighted or change colors.  When I
> > add a CheckBox, it doesn't highlight anymore and my
> > onListItemClick(...) listener never gets called.  Is there a bug? or a
> > trick to getting this to work?
>
> This sounds like the same problem that people observe when they put a
> Button in a ListView item view.  Android gets confused about where
> input focus should be and the list stops working well.  I'm not making
> any solid claims here, but I think you could benefit from some
> searches on that topic.
>
> Doug
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> 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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to