-
-
Save sockeqwe/f9f451846fc60a32f825 to your computer and use it in GitHub Desktop.
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
<?xml version="1.0" encoding="utf-8"?> | |
<resources> | |
<declare-styleable name="FloatingActionButton"> | |
<attr name="backgroundColor" format="color" /> | |
<attr name="highlightColor" format="color" /> | |
</declare-styleable> | |
</resources> |
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
<resources> | |
<dimen name="fab_elevation">3dp</dimen> | |
<dimen name="fab_press_translation_z">2dp</dimen> | |
</resources> |
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
<selector xmlns:android="http://schemas.android.com/apk/res/android"> | |
<item android:state_enabled="true" android:state_pressed="true"> | |
<set> | |
<objectAnimator android:duration="@android:integer/config_shortAnimTime" | |
android:propertyName="translationZ" | |
android:valueTo="@dimen/fab_press_translation_z" | |
android:valueType="floatType"/> | |
</set> | |
</item> | |
<item> | |
<set> | |
<objectAnimator android:duration="@android:integer/config_shortAnimTime" | |
android:propertyName="translationZ" | |
android:valueTo="0" | |
android:valueType="floatType"/> | |
</set> | |
</item> | |
</selector> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment