在adapter里对recyclerView的item设置点击事件后,再对recyclerView本身设置touch事件时,捕捉不到Down这个action。
认证高级PHP讲师
item’s click event overwrites recyclerView’s click event. If you want to exist at the same time, you need to add android:descendantFocusability="blocksDescendants" to the item and layout Add android:focusable="false" to the click control
item’s click event overwrites recyclerView’s click event.
If you want to exist at the same time, you need to add android:descendantFocusability="blocksDescendants" to the
item and layout
Add android:focusable="false" to the click control