The solution for this is we need to use
nestedScrollView instead of
scrollview like the below code snippet:
Now what kinda problem occurred when we used
nestedScrollView and put recyclerView inside
nestedScrollView, it scrolls at various speeds depending on gestures. The scrolling feature will not be smooth.
So to fix this issue all you have to do after setting your adapter
put this line
recyclerview will work with smooth scrolling…
Visit my Website at https://danishamjad.com
I hope this article is helpful. If you think something is missing, have questions, or would like to give feedback, go ahead and leave a comment below. I’d appreciate the feedback.
I’ve written some other Android-related content, and if you liked what you read here, you’ll probably also enjoy this:
Disable Shift Label Animation from Bottom Navigation — Android.
Make Bottom Navigation without animation like youtube, Instagram
Passing Data between Fragments on Android Using ViewModel
Managing UI-related data in activity lifecycles
Convert All your Gradle Dependencies in to Functions — Android
No More Comments to dependencies