Swiperefreshlayout + Viewpager + Recyclerviewfrom the CommonsWare Community archives
At June 13, 2019, 4:13pm, rd7773 asked:
Fragment’s layout has Swiperefreshlayout as parent with a viewpager as it’s direct child.
Each page of viewpager is a Recyclerview.
Scrolling is not smooth i.e. sometimes when viewpager is swiped left to right or vice versa, it starts refreshing. Other times, when scrolling the vertically the rv with a fast top to down swipe gesture, instead of rv scrolling to top, it again starts refreshing and sometimes viewpager also changes page.
How to handle this and also reduce the sensitivity of the viewpager.
At June 13, 2019, 4:30pm, mmurphy replied:
I cannot provide much advice for how arbitrary widgets connect and interact — sorry!
However, you have several competing gestures here. Those gestures may also compete with the system, given gesture navigation on Android Q and certain device models. IMHO, you should aim to have fewer independent gestures.