只需要 在代码中 调用setFocusable(false) 方法, 只要在XML中设置 false 为什么不行,这个需要继续调查。
ibDeleteRcipe.setFocusable(false);
第二种 解决方式:在Item布局中 添加android:descendantFocusability="blocksDescendants"
见 http://mylifewithandroid.blogspot.com/2011/08/focus-problems-with-list-rows-and.html
本文探讨了在Android应用中使用ExpandableListView组件时遇到的点击响应问题,并提供了两种解决方案。第一种是在代码中调用setFocusable(false)方法;第二种是在Item布局中添加android:descendantFocusability属性。详细解释了这两种方法的工作原理及适用场景。
3079

被折叠的 条评论
为什么被折叠?



