Recyclerview inside ScrollView not scrolling smoothly
Try doing:
RecyclerView v = (RecyclerView) findViewById(...);
v.setNestedScrollingEnabled(false);
As an alternative, you can modify your layout using the support design library. I guess your current layout is something like:
<ScrollView >
<LinearLayout >
<View > <!-- upper content -->
<RecyclerView > <!-- with custom layoutmanager -->
</LinearLayout >
</ScrollView >
You can modify that to:
<CoordinatorLayout >
<AppBarLayout >
<CollapsingToolbarLayout >
<!-- with your content, and layout_scrollFlags="scroll" -->
</CollapsingToolbarLayout >
</AppBarLayout >
<RecyclerView > <!-- with standard layoutManager -->
</CoordinatorLayout >
However this is a longer road to take, and if you are OK with the custom linear layout manager, then just disable nested scrolling on the recycler view.
Edit (4/3/2016)
The v 23.2
release of the support libraries now includes a factory “wrap content” feature in all default LayoutManager
s. I didn’t test it, but you should probably prefer it to that library you were using.
<ScrollView >
<LinearLayout >
<View > <!-- upper content -->
<RecyclerView > <!-- with wrap_content -->
</LinearLayout >
</ScrollView >
RecyclerView inside ScrollView is not working
use NestedScrollView
instead of ScrollView
Please go through NestedScrollView reference document for more information.
and add recyclerView.setNestedScrollingEnabled(false);
to your RecyclerView
Recyclerview inside Nested Scrollview scroll but does not fast scroll like normal Recyclerview or Nested Scrollview
try
recyclerView.setNestedScrollingEnabled(false);
ScrollView not scrolling smooth with inside 3 recyclerviews
Finally I achieved.I used NestedScrollView as root.And used only 1 recyclerview.And in adapter of this recyclerview I created other recyclerViews.Scrolling smooth Thanks @Venky
Related Topics
Proguard Causing Runtimeexception (Unmarshalling Unknown Type Code) in Parcelable Class
How to Share Same Data Between Multiple Activities
Android - Setonclicklistener VS Onclicklistener VS View.Onclicklistener
The Android Emulator Is Not Starting, Showing "Invalid Command-Line Parameter"
What Is Android Keystore File, and What Is It Used For
Check If Correct Google Play Service Available: "Unfortunately Application Has Stopped Working"
Android - Controlling a Task with Timer and Timertask
Simple Example for Intent and Bundle
Android App Crashing (Fragment and Xml Onclick)
How to Make My App Receive Broadcast When Other Applications Are Installed or Removed
First Launch Take Long Time (Classloader Referenced Unknown Path)
How to Make a Horizontal Listview in Android
Adt Requires 'Org.Eclipse.Wst.Sse.Core 0.0.0' But It Could Not Be Found
Programmatically Relaunch/Recreate an Activity