Android ListView中的Button屏蔽onItemClick事件解决办法

来源:互联网 发布:全民飞机巅峰飞跃算法 编辑:程序博客网 时间:2024/05/01 05:59

来源(貌似他也是转载的):http://blog.csdn.net/gyflyx/article/details/6567701

关键点:

1.ListView每一项的布局中,顶级布局需要声明android:descendantFocusability= "blocksDescendants"

2.被ListView包含的Button需要声明属性android:focusable = "false"

原创粉丝点击