Published in


RecyclerView within NestedScrollView Scrolling Issue

Image Source:

As we already know that recyclerView has a smooth scrolling by itself but when we need to put recyclerView within any scrollView it will not work like the below code snippet:


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 ViewCompat.setNestedScrollingEnabled(recyclerView, false);

Now your recyclerview will work with smooth scrolling…

Visit my Website at

Sharing the knowledge is Caring :-)

Thanks for reading this article. Be sure to clap to recommend this article if you found it helpful. It means a lot to me.

If you need any help then Join me on Twitter, Linkedin, Github, and Subscribe to my Youtube Channel.




The (retired) Pub(lication) for Android & Tech, focused on Development

Recommended from Medium

.run { explained } in Kotlin


Play song in flutter

ExoPlayer 2.14 - What’s new

Hilt is stable! Easier dependency injection on Android

Rust on Android

How to Create Custom AppBar/ActionBar/ToolBar in Android Studio | Java

Dagger navigation support in Android Studio

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Danish Amjad

Danish Amjad

Senior Software Engineer(Android). Open Source Contributor, Technical Writer, Email: check my website at

More from Medium

Jetpack DataStore in Modern Android Development

A practical guide to Automated Android app testing

What is Android Architecture?

Android Architecture

Jetpack Compose Basics for Beginners