There are markup
<LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" android:id="@+id/customerInfoParent" android:layout_marginBottom="5dp"> ... ... ... ... </LinearLayout> <android.support.v4.widget.NestedScrollView android:layout_width="match_parent" android:layout_height="match_parent" android:scrollbars="none" android:layout_weight="1" android:id="@+id/valuescroll" app:layout_behavior="@string/appbar_scrolling_view_behavior">> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical"> ... ... ... ... </LinearLayout> </android.support.v4.widget.NestedScrollView> How to make the customerInfoParent element hide and appear as a collapse action bar when scrolling NestedScrollView
Following the example from the link, I did this:
... ... ... ... </LinearLayout> </android.support.design.widget.CollapsingToolbarLayout> </android.support.design.widget.AppBarLayout> <android.support.v4.widget.NestedScrollView android:layout_width="match_parent" android:layout_height="match_parent" android:scrollbars="none" android:layout_weight="1" android:id="@+id/valuescroll" app:layout_behavior="@string/appbar_scrolling_view_behavior">> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical"> ... ... ... ... </LinearLayout> </android.support.v4.widget.NestedScrollView> but it does not work like that. He walks with scrolled ie as if my LinearLayout is inside a scroll so that it appears you need to scroll to the beginning ..