51 lines
1.8 KiB
XML
51 lines
1.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<set xmlns:android="http://schemas.android.com/apk/res/android">
|
|
<selector>
|
|
<item
|
|
state_enabled="true"
|
|
state_hovered="true">
|
|
<set>
|
|
<objectAnimator
|
|
android:duration="100"
|
|
android:valueTo="1dp"
|
|
android:valueType="floatType"
|
|
android:propertyName="translationZ"/>
|
|
<objectAnimator
|
|
android:duration="0"
|
|
android:valueTo="0dp"
|
|
android:valueType="floatType"
|
|
android:propertyName="elevation"/>
|
|
</set>
|
|
</item>
|
|
<item state_enabled="true">
|
|
<set>
|
|
<objectAnimator
|
|
android:duration="100"
|
|
android:valueTo="0dp"
|
|
android:valueType="floatType"
|
|
android:propertyName="translationZ"
|
|
android:startDelay="100"/>
|
|
<objectAnimator
|
|
android:duration="0"
|
|
android:valueTo="0dp"
|
|
android:valueType="floatType"
|
|
android:propertyName="elevation"/>
|
|
</set>
|
|
</item>
|
|
<item>
|
|
<set>
|
|
<objectAnimator
|
|
android:duration="0"
|
|
android:valueTo="0dp"
|
|
android:valueType="floatType"
|
|
android:propertyName="translationZ"/>
|
|
<objectAnimator
|
|
android:duration="0"
|
|
android:valueTo="0dp"
|
|
android:valueType="floatType"
|
|
android:propertyName="elevation"/>
|
|
</set>
|
|
</item>
|
|
</selector>
|
|
</set>
|