问题描述:
自定义的ListView无法触发OnItemClickListener。
解决方法:
对Item Layout的根控件设置其android:descendantFocusability="blocksDescendants"即可。
本文介绍了解决自定义ListView无法触发OnItemClickListener的问题。通过设置ItemLayout的根控件属性android:descendantFocusability=blocksDescendants,可以有效解决该问题。
问题描述:
自定义的ListView无法触发OnItemClickListener。
解决方法:
对Item Layout的根控件设置其android:descendantFocusability="blocksDescendants"即可。
487

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