


I'm not 100% sure of why, but this seems to be the answer to my question. But having it set to horizontal, does not affect view recycling.

Using either wrap_content or match_parent + vertical orientation of the layout manager leads to losing recycling. I've been debugging and I think the reason why this actually works seems to be the layout manager orientation set to horizontal. Found two working solutions: NestedScrollView.scrollTo (0, 0) (see accepted answer, jumps abruptly) NestedScrollView.fling (-10000) (scrolls smoothly, but appropriate velocity value depends on current position, device, desired scrolling time and so on) It was not necessary to change. I've already researched and I know that NestedScrollView causes this but I'm curious about why this works, let's say "inside a fragment" and not when I'm using this same approach in other cases, let's say another activity (even another fragment) Minimal project to reproduce it can be found on GitHub. The viewpager is where the fragments are created and as you can see there's nothing fancy here. Suppose you have three RecyclerViews in your layout (They can be dynamically or programmatically created) as shown in the example.xml file below.infinite height, tested with design:23.1.1 ). This is necessary since embedding a regular WebView in a NestedScrollView causes height issues (e.g. Nesting will reduce the performance of RecyclerView. While creating an item for RecyclerView avoid using NestedView for RecyclerView item.
ANDROID NESTEDSCROLLVIEW SMOOTHSCROLL FOR ANDROID
Pretty much the layout looks like this, this is inside a fragment. NestedScrollWebView for Android A WebView that implements NestedScrollingChild, in order to use it with CoordinatorLayout and AppBarLayout from the Android Design Support Library. So to improve the performance of our RecyclerView we should keep the size of our ImageView to make it RecyclerView load faster.
ANDROID NESTEDSCROLLVIEW SMOOTHSCROLL INSTALL
Install with RNPM react-native link react-native-nested-scrollview. Install npm install react-native-nested-scrollview. Its extract from react-native-bottom-sheet-behavior. I am working on an application where Im using AppBarLayout with. React native wrapper for android NestedScrollView. What's interesting here is that I'm not using any isNestedScrollEnabled = false in any of the recycle views as they are actually recycling. androidandroid-appbarlayoutandroid-collapsingtoolbarlayoutandroid-nestedscrollview. I'm applying padding to the NestedScrollView + clipToPadding=false to get that layout. I've successfully achieved this effect using NestedScrollView + RecyclerView. where 10000 is the velocity in y-direction.
