android - How to do parallax effect for particular layout and make toolbar fixed -


my code this

<android.support.design.widget.coordinatorlayout     android:layout_width="match_parent"     android:layout_height="match_parent"     android:fitssystemwindows="true">  <android.support.design.widget.appbarlayout         android:id="@+id/app_bar_layout"         android:layout_width="match_parent"         android:layout_height="wrap_content">  <android.support.design.widget.collapsingtoolbarlayout             android:id="@+id/collapsing_toolbar"             android:layout_width="match_parent"             android:layout_height="match_parent"             android:fitssystemwindows="true"             app:contentscrim="?attr/colorprimary"             app:expandedtitlemarginend="64dp"             app:expandedtitlemarginstart="48dp"             app:layout_scrollflags="scroll|exituntilcollapsed">           <imageview                 android:id="@+id/profilecover"                 android:layout_width="match_parent"                 android:layout_height="@dimen/profile_cover_height"                 android:background="@drawable/ic_header_signup"                 app:layout_collapsemode="parallax"                 />            <android.support.v7.widget.toolbar                 android:id="@+id/sign_up_toolbar"                 style="@style/transparenttoolbar"                 app:contentinsetstart="0dp"                 android:alpha="1"                 app:layout_collapsemode="pin">             <relativelayout                     android:layout_width="match_parent"                     android:layout_height="wrap_content">            .........            </relativelayout> 

problem here v7.widget.toolbar remains fixed,imageview parallax effect, app:contentscrim="?attr/colorprimary not working change color of v7.widget


Comments