When I try to set a specific value to elevation for AppBarLayout, the shadow disappears completely.
<android.support.design.widget.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:elevation="4dp">
<!-- Toolbar -->
<android.support.v7.widget.Toolbar...
<!-- Other Layouts -->
</android.support.design.widget.AppBarLayout>
Is this a bug or the expected behaviour?
I'm using the version 26.0.0 of the design library.
Setting
Property Animation
Creating an animation with 1ms of execution time:
/animator/appbar_elevation.xml
Setting it to AppBarLayout
And it can use in java code.
Work for me: