Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- recyclerView.addOnItemTouchListener(object: RecyclerView.OnItemTouchListener {
- override fun onTouchEvent(rv: RecyclerView, e: MotionEvent) {
- // not needed
- }
- override fun onInterceptTouchEvent(rv: RecyclerView, motionEvent: MotionEvent): Boolean {
- return pagerDecorator.isIndicatorPressing(motionEvent, rv)
- }
- override fun onRequestDisallowInterceptTouchEvent(disallowIntercept: Boolean) {
- // not needed
- }
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement