Android Design Library AppBar Scrolling behavior -


i have own implementation of scrolling toolbar in app. in new design library google http://android-developers.blogspot.de/2015/05/android-design-support-library.html there new implementation scrolling toolbar. thats nice , easy implement problem there limitation. have toolbar , behind there image , tabstrip @ bottom. if use new implementation cant toolbar image scroll off , tabstrip dont disappear. can tabstrip under toolbar image thats not goal.

in left thats way works correctly tabstrip isnt on top of image. on right correct tabstrip disappear if scrolls

i hope clear mean , can me, thank you.

i forget xml declarations. left screenshot:

<android.support.design.widget.coordinatorlayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" >  <android.support.v4.widget.nestedscrollview     android:layout_width="match_parent"     android:layout_height="match_parent"     app:layout_behavior="@string/appbar_scrolling_view_behavior">      <webview         android:id="@+id/wvtest"         android:layout_height="match_parent"         android:layout_width="match_parent"/>  </android.support.v4.widget.nestedscrollview>  <android.support.design.widget.appbarlayout     android:id="@+id/abtest"     android:layout_width="match_parent"     android:layout_height="wrap_content">      <relativelayout         android:layout_width="match_parent"         android:layout_height="150dp"         app:layout_scrollflags="scroll|enteralways">          <imageview             android:id="@+id/ivmainimageview"             android:layout_width="match_parent"             android:layout_height="match_parent"             android:scaletype="centercrop"             android:src="@drawable/background" />          <view             android:id="@+id/vactionbarbackgroundholder"             android:layout_width="match_parent"             android:layout_height="match_parent"             android:background="#37913c"             android:alpha="0" />          <android.support.v7.widget.toolbar             android:id="@+id/tbtest"             android:layout_width="match_parent"             android:background="#00ffffff"             android:layout_height="65dp" />      </relativelayout>      <com.astuetz.pagerslidingtabstrip         android:id="@+id/tabs"         android:layout_width="match_parent"         android:layout_height="48dp"         android:background="#37913c"/>  </android.support.design.widget.appbarlayout> 

right screenshot:

<android.support.design.widget.coordinatorlayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" >  <android.support.v4.widget.nestedscrollview     android:layout_width="match_parent"     android:layout_height="match_parent"     app:layout_behavior="@string/appbar_scrolling_view_behavior">      <webview         android:id="@+id/wvtest"         android:layout_height="match_parent"         android:layout_width="match_parent"/>  </android.support.v4.widget.nestedscrollview>  <android.support.design.widget.appbarlayout     android:id="@+id/abtest"     android:layout_width="match_parent"     android:layout_height="wrap_content">      <relativelayout         android:layout_width="match_parent"         android:layout_height="150dp"         app:layout_scrollflags="scroll|enteralways">          <imageview             android:id="@+id/ivmainimageview"             android:layout_width="match_parent"             android:layout_height="match_parent"             android:scaletype="centercrop"             android:src="@drawable/background" />          <view             android:id="@+id/vactionbarbackgroundholder"             android:layout_width="match_parent"             android:layout_height="match_parent"             android:background="#37913c"             android:alpha="0" />          <android.support.v7.widget.toolbar             android:id="@+id/tbtest"             android:layout_width="match_parent"             android:background="#00ffffff"             android:layout_height="65dp" />          <com.astuetz.pagerslidingtabstrip             android:id="@+id/tabs"             android:layout_width="match_parent"             android:layout_height="48dp"             android:background="#8837913c"             android:layout_alignparentbottom="true"/>      </relativelayout> </android.support.design.widget.appbarlayout> 


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -