ListView中添加Button后,Button的点击事件和ListView的点击事件冲突

1.在ItemView配置的xml文件中的根节点添加属性android:descendantFocusability="blocksDescendants"

2.在要添加事件的控件上添加android:focusable="false"

posted @ 2013-05-22 17:18  zhangze  阅读(5167)  评论(0编辑  收藏  举报