I have a slight issue with scrolling on a screen. Layout is as follows:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<android.support.v4.widget.NestedScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content">
<LinearLayout
android:id="@+id/my_account_parent_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
app:layout_behavior="@string/appbar_scrolling_view_behavior">
<!--- Views omitted --->
</LinearLayout>
</android.support.v4.widget.NestedScrollView>
<android.support.v7.widget.RecyclerView
android:id="@+id/my_account_recycler_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/white"
app:layout_behavior="@string/appbar_scrolling_view_behavior" />
</LinearLayout>
The issue is that the recyclerview cannot be in a Scrollview/NestedScrollView thats why its outside the scrollview. Now i need the views that are wrapped in the LinearLayout which is wrapped around the the NestedScrollView to scroll upwards when the user scrolls on any of the views (RecyclerView and All the others above it). Even though the other views have a scrollview wrapped around them, they dont realise that they can scroll out the screen even though the recyclerview has content outside the screen?
Thanks