NestedScrollView scrolls to top on Recyclerview resized

After several days I’ve found a solution to the problem. You just need to add the descendantFocusability in the first layout under the ScrollView like this: <RelativeLayout android:layout_width=”match_parent” android:layout_height=”match_parent” android:id=”@+id/lay_account” android:descendantFocusability=”blocksDescendants”>

ListView not expanding inside NestedScrollView

you can fix it when you add addtribute android:fillViewport=”true” in android.support.v4.widget.NestedScrollView 🙂 . This my code. <android.support.v4.widget.NestedScrollView android:layout_width=”match_parent” android:layout_height=”match_parent” android:scrollbars=”none” app:layout_behavior=”@string/appbar_scrolling_view_behavior” android:fillViewport=”true” > <ListView android:id=”@+id/list_myContent” android:layout_width=”match_parent” android:layout_height=”match_parent” android:scrollbars=”vertical” > </ListView> </android.support.v4.widget.NestedScrollView>

How to put RecyclerView inside NestedScrollView?

The following is my new updated answer: <android.support.v4.widget.NestedScrollView android:id=”@+id/scrollview” android:layout_width=”match_parent” android:layout_height=”match_parent” android:fillViewport=”true” app:layout_behavior=”@string/appbar_scrolling_view_behavior”> <RelativeLayout android:layout_width=”match_parent” android:layout_height=”wrap_content”> <android.support.v7.widget.CardView android:id=”@+id/cardview1″ android:layout_width=”match_parent” android:layout_height=”wrap_content” android:layout_margin=”@dimen/card_margin”> <LinearLayout style=”@style/Widget.CardContent” android:layout_width=”match_parent” android:layout_height=”wrap_content”> <TextView android:layout_width=”match_parent” android:layout_height=”wrap_content” android:text=”Info CardView1″ android:textAppearance=”@style/TextAppearance.AppCompat.Title” /> <TextView android:layout_width=”match_parent” android:layout_height=”wrap_content” android:text=”@string/cheese_ipsum” /> </LinearLayout> </android.support.v7.widget.CardView> <android.support.v7.widget.CardView android:id=”@+id/cardview2″ android:layout_width=”match_parent” android:layout_height=”wrap_content” android:layout_below=”@+id/cardview1″ android:layout_margin=”@dimen/card_margin”> <LinearLayout style=”@style/Widget.CardContent” android:layout_width=”match_parent” android:layout_height=”wrap_content”> <TextView android:layout_width=”match_parent” android:layout_height=”wrap_content” android:text=”Info CardView2″ android:textAppearance=”@style/TextAppearance.AppCompat.Title” … Read more

How to disable scrolling of NestedScrollView&CollapsingToolbarLayout, for example when there is no more content below?

What can I do in order to make the scrolling stop when there is no more content to show at the bottom? Firstly, as I have commented below, the scrolling you said in your question is not of the NestedScrollView. It belongs to the CollapsingToolbarLayout. The NestedScrollView‘s scroll event only happens when CollapsingToolbarLayout fully collapsed, … Read more

RecyclerView does not Recycling Views when use it inside NestedScrollView

This is because we have a recycler view which has scroll behaviour inside a scroll view. (scroll inside a scroll) I think the best way to resolve this issue is to your profileCardview as a header in your recycler view and then remove the nested scroll view. If it were a listview then it was … Read more