Skip to content

Instantly share code, notes, and snippets.

@le0nidas

le0nidas/request-disallow.kt Secret

Created May 9, 2021
Embed
What would you like to do?
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