Skip to content Skip to sidebar Skip to footer

Change Color From My Collapsingtoolbarlayout

I am trying to do a CollapsingToolbar animation based in Material Design rules. Everything works well but a thing that is breaking down my mind. I am trying to change the color of

Solution 1:

Your code to change the color is correct. You just have to remove the

app:contentScrim="@color/gps_friends_green_main"

in your "android.support.design.widget.CollapsingToolbarLayout", and it should work.

Solution 2:

Use this in your AppBarLayout: android:background="@android:color/transparent" // use any color here

<android.support.design.widget.AppBarLayout
            android:id="@+id/appbar"
            android:layout_width="match_parent"
            android:layout_height="192dp"
            android:background="@android:color/transparent" //use any color here
            android:fitsSystemWindows="true">

Post a Comment for "Change Color From My Collapsingtoolbarlayout"