Skip to main content
Spelling, Grammar, Formatting
Source Link
Idrizi.A
  • 12.3k
  • 16
  • 52
  • 92

As per the document of Android SDKdocumentation android:nestedScrollingEnabled="false" works, but only on Android API level >= 21.

android:nestedScrollingEnabled="false"is work, if you are using Android API level >= 21.

But nowaday, peopleIf you want the appto support from below of 21 also, so there another best solution of smooth scroll of recycle view inside nested scrollview fordevices below and above ofAPI 21 is as well, use the following:

ViewCompat.setNestedScrollingEnabled(recyclerView, false);

ViewCompat.setNestedScrollingEnabled(recyclerView, false); 

As per the document of Android SDK,

android:nestedScrollingEnabled="false"is work, if you are using Android API level >= 21.

But nowaday, people want the app support from below of 21 also, so there another best solution of smooth scroll of recycle view inside nested scrollview for below and above of 21 is as

ViewCompat.setNestedScrollingEnabled(recyclerView, false);

As per Android documentation android:nestedScrollingEnabled="false" works, but only on Android API level >= 21.

If you want to support devices below API 21 as well, use the following:

ViewCompat.setNestedScrollingEnabled(recyclerView, false); 
Source Link
TejaDroid
  • 6.8k
  • 4
  • 33
  • 38

As per the document of Android SDK,

android:nestedScrollingEnabled="false"is work, if you are using Android API level >= 21.

But nowaday, people want the app support from below of 21 also, so there another best solution of smooth scroll of recycle view inside nested scrollview for below and above of 21 is as

ViewCompat.setNestedScrollingEnabled(recyclerView, false);