83 lines
2.9 KiB
XML
83 lines
2.9 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_pressed="true">
|
|
<set>
|
|
<objectAnimator
|
|
android:duration="100"
|
|
android:valueTo="6dp"
|
|
android:valueType="floatType"
|
|
android:propertyName="translationZ"/>
|
|
<objectAnimator
|
|
android:duration="0"
|
|
android:valueTo="6dp"
|
|
android:valueType="floatType"
|
|
android:propertyName="elevation"/>
|
|
</set>
|
|
</item>
|
|
<item
|
|
state_enabled="true"
|
|
state_hovered="true">
|
|
<set>
|
|
<objectAnimator
|
|
android:duration="100"
|
|
android:valueTo="2dp"
|
|
android:valueType="floatType"
|
|
android:propertyName="translationZ"/>
|
|
<objectAnimator
|
|
android:duration="0"
|
|
android:valueTo="6dp"
|
|
android:valueType="floatType"
|
|
android:propertyName="elevation"/>
|
|
</set>
|
|
</item>
|
|
<item
|
|
state_focused="true"
|
|
state_enabled="true">
|
|
<set>
|
|
<objectAnimator
|
|
android:duration="100"
|
|
android:valueTo="2dp"
|
|
android:valueType="floatType"
|
|
android:propertyName="translationZ"/>
|
|
<objectAnimator
|
|
android:duration="0"
|
|
android:valueTo="6dp"
|
|
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="6dp"
|
|
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>
|