[ViewPager2 + horizontal recyclerView] Handling Scrolling of Horizontal Recyclerview inside Viewpager2
val listener = object : RecyclerView.OnItemTouchListener { override fun onInterceptTouchEvent(rv: RecyclerView, e: MotionEvent): Boolean { val action = e.action return if (binding.recycler.canScrollHorizontally(RecyclerView.FOCUS_FORWARD)) { when (action) { MotionEvent.ACTION_MOVE -> rv.parent .requestDisallowInterceptTouchEvent(true) } false } else { when (action) { MotionEvent.ACTION_MOVE -> r..
2022.02.24