android - Toolbar will not collapse with Scrollview as child of CoordinatorLayout -


i trying follow google docs on using coordinatorlayout having issue scrollview inside coordinatorlayout. basically, toolbar collapse recyclerview or listview when scrolling down. scrollview not collapse.

<android.support.design.widget.coordinatorlayout     android:layout_width="match_parent"     android:layout_height="match_parent">      <scrollview         android:layout_width="match_parent"         android:layout_height="match_parent"         app:layout_behavior="@string/appbar_scrolling_view_behavior"         >          <textview             android:id="@+id/tv_view"             android:layout_width="match_parent"             android:layout_height="match_parent"             android:layout_gravity="center"             android:gravity="center"             android:text="@string/filler"             style="@style/textappearance.appcompat.large"             />      </scrollview>      <android.support.design.widget.appbarlayout         android:layout_width="match_parent"         android:layout_height="wrap_content"         >         <android.support.v7.widget.toolbar             android:id="@+id/toolbar"             android:layout_width="match_parent"             android:layout_height="?attr/actionbarsize"             app:layout_scrollflags="scroll|enteralways"             />      </android.support.design.widget.appbarlayout>      </android.support.design.widget.coordinatorlayout> 

the scrollview not cooperate coordinatorlayout. have use nestedscrollview instead of scrollview


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -