在adapter里对recyclerView的item设置点击事件后,再对recyclerView本身设置touch事件时,捕捉不到Down这个action。
PHP中文网2017-04-17 17:30:22
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