开发者

Dispatch events to child

I have a ListView containing items with one button each and I want to handle user events in this o开发者_运维知识库rder:

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

How can I do this?


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜