Rodrigo
Rodrigo

Reputation: 4802

Dispatch events to child

I have a ListView containing items with one button each and I want to handle user events in this order:

  1. TouchEvent on ListView.
  2. TouchEvent on ListItem.
  3. Click on Button inside ListItem.

How can I do this?

Upvotes: 0

Views: 253

Answers (1)

Steve Bergamini
Steve Bergamini

Reputation: 14600

If understand correctly, with a single user click, you want to trigger the event (but not catch it) for each one of those items? You can't. I'd make either the list item or the button the clickable item, handle that, and do all of the logic you need to do in that handler.

Upvotes: 1

Related Questions