首页 > 其他 > 详细

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

时间:2014-11-19 14:14:53      阅读:213      评论:0      收藏:0      [点我收藏+]

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

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

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

原文:http://blog.csdn.net/love_javc_you/article/details/41280275

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!