Created
June 14, 2019 10:25
-
-
Save jongha/c5e006c8dea7d266690ed9be13b5108b to your computer and use it in GitHub Desktop.
Appbar elevation in expanded state on Android
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<android.support.design.widget.AppBarLayout | |
android:id="@+id/appbar" | |
android:layout_width="match_parent" | |
android:layout_height="320dp" | |
android:stateListAnimator="@drawable/appbar_always_elevated" | |
android:fitsSystemWindows="true"> | |
<?xml version="1.0" encoding="utf-8"?> | |
<selector xmlns:android="http://schemas.android.com/apk/res/android"> | |
<item> | |
<objectAnimator android:propertyName="elevation" | |
android:valueTo="8dp" | |
android:valueType="floatType" | |
android:duration="1"/> | |
</item> | |
</selector> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment