summaryrefslogtreecommitdiff
path: root/main/src/ui/res/anim/fab_anim.xml
diff options
context:
space:
mode:
Diffstat (limited to 'main/src/ui/res/anim/fab_anim.xml')
-rw-r--r--main/src/ui/res/anim/fab_anim.xml23
1 files changed, 23 insertions, 0 deletions
diff --git a/main/src/ui/res/anim/fab_anim.xml b/main/src/ui/res/anim/fab_anim.xml
new file mode 100644
index 00000000..498533e0
--- /dev/null
+++ b/main/src/ui/res/anim/fab_anim.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="utf-8"?><!--
+ ~ Copyright (c) 2012-2016 Arne Schwabe
+ ~ Distributed under the GNU GPL v2 with additional terms. For full terms see the file doc/LICENSE.txt
+ -->
+
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+<item android:state_pressed="true">
+ <objectAnimator
+ android:propertyName="translationZ"
+ android:duration="@android:integer/config_shortAnimTime"
+ android:valueFrom="@dimen/elevation_low"
+ android:valueTo="@dimen/elevation_high"
+ android:valueType="floatType"/>
+</item>
+<item>
+ <objectAnimator
+ android:propertyName="translationZ"
+ android:duration="@android:integer/config_shortAnimTime"
+ android:valueFrom="@dimen/elevation_high"
+ android:valueTo="@dimen/elevation_low"
+ android:valueType="floatType"/>
+</item>
+</selector>