81 lines
2.6 KiB
XML
81 lines
2.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
|
<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="2dp"
|
|
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="2dp"
|
|
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="2dp"
|
|
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="2dp"
|
|
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>
|