Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// apply touch listener on ViewPager RecyclerView
val recyclerView = binding.viewPager[0] as? RecyclerView
if (recyclerView != null) {
recyclerView.addOnItemTouchListener(swipeControlTouchListener)
} else {
Log.w(localClassName, "RecyclerView is null, API/Version changed ?!")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment