我创建了自定义列表视图,其中有一个按钮,我的问题是在列表项目中添加按钮后,列表视图的点击已停止工作。有没有办法让两个听众都能工作?
答案 0 :(得分:4)
将其设置为ListItem root Layout
android:descendantFocusability="blocksDescendants"
并设置
android:focusable="true"
android:focusableInTouchMode="true"
到Buttons
。这似乎适用于我的情况。