SHARE
TWEET

Untitled

a guest Jul 17th, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. recyclerView.addOnItemTouchListener(object: RecyclerView.OnItemTouchListener {
  2.          override fun onTouchEvent(rv: RecyclerView, e: MotionEvent) {
  3.              // not needed
  4.          }
  5.  
  6.          override fun onInterceptTouchEvent(rv: RecyclerView, motionEvent: MotionEvent): Boolean {
  7.              return pagerDecorator.isIndicatorPressing(motionEvent, rv)
  8.          }
  9.  
  10.          override fun onRequestDisallowInterceptTouchEvent(disallowIntercept: Boolean) {
  11.              // not needed
  12.          }
  13.     })
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top