-
-
Save le0nidas/3f37f1954579a7744c888903ee1ab78d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
list.addOnItemTouchListener( | |
object: RecyclerView.SimpleOnItemTouchListener() { | |
override fun onInterceptTouchEvent(rv: RecyclerView, e: MotionEvent): Boolean { | |
if (e.action == MotionEvent.ACTION_DOWN) { | |
rv.parent.requestDisallowInterceptTouchEvent(true) | |
} | |
return super.onInterceptTouchEvent(rv, e) | |
} | |
} | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment