Open hkchakladar opened 4 years ago
same to me. how to solve it?
same problem. even does not work by double touch
add android:nestedScrollingEnabled="false"
in RecyclerView
Same problem. @VishnuKantAgarwal 's solution not working too.
any update?
any update?
Hey, dod anyone solve it?
I have RecyclerView
inside ConstraintLayout
and when I scrolldown view from top not fully came down
add
android:nestedScrollingEnabled="false"
in RecyclerView
This works for me, but I have to set up other things as well
binding.tableContent.listView.setNestedScrollingEnabled(false)
binding.tableContent.listView.setOnTouchListener { v, event ->
when (event.action) {
MotionEvent.ACTION_DOWN -> {
v.parent.requestDisallowInterceptTouchEvent(true)
}
MotionEvent.ACTION_MOVE -> {
v.parent.requestDisallowInterceptTouchEvent(true)
}
MotionEvent.ACTION_UP -> {
v.parent.requestDisallowInterceptTouchEvent(false)
}
else -> {}
}
v.onTouchEvent(event)
true
}
I have a
RecyclerView
insideBottomSheetDialogFragment
. TheRecyclerView
items touch working normally when it's scrolling slowly.But when the
RecyclerView
is scrolled fast and after the list stops (without touching), than touching on any item doesn't work on fast touch. It needs double touching.See in the below example gif, when touching on
Andhra Pradesh
it's working fine. After slow scrolling, touching onHaryana
also works fine. Then doing a fast scroll and touching onPunjab
doesn't work on the first touch. Touching again it works.Following is the code: OperatorListDialogFragment.java
dialog.xml
recycler_item.xml