Skip to content

Instantly share code, notes, and snippets.

@seoft
Created January 7, 2020 15:02
Show Gist options
  • Save seoft/f06e7abdbdba537009e5c882f01f5816 to your computer and use it in GitHub Desktop.
Save seoft/f06e7abdbdba537009e5c882f01f5816 to your computer and use it in GitHub Desktop.
부모 뷰의 onTouchListener가 발생하지 않을 때 해결법
actDadigRvCenter.addOnItemTouchListener(object : RecyclerView.OnItemTouchListener{
override fun onTouchEvent(rv: RecyclerView, e: MotionEvent) {}
override fun onInterceptTouchEvent(rv: RecyclerView, event: MotionEvent): Boolean {
// 처리
return false
}
override fun onRequestDisallowInterceptTouchEvent(disallowIntercept: Boolean) {}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment