summaryrefslogtreecommitdiff
path: root/app/src/main/res/drawable/ic_animate_pause_play.xml
diff options
context:
space:
mode:
authorByteHamster <info@bytehamster.com>2021-04-14 22:22:58 +0200
committerByteHamster <info@bytehamster.com>2021-04-15 20:54:53 +0200
commitf1cba8042f18c2a138ca3af6df1005b9983e491e (patch)
tree56c0ecb7a7450408bca4de3385ca4a30c4dab1bd /app/src/main/res/drawable/ic_animate_pause_play.xml
parent8768144c9107945cfaf56ed4db771c3def8d00de (diff)
downloadAntennaPod-f1cba8042f18c2a138ca3af6df1005b9983e491e.zip
Added animated play button
Drawables need to be defined in the app module, which has the vector compat library enabled. When enabling the library for the core module, the app breaks on API 19.
Diffstat (limited to 'app/src/main/res/drawable/ic_animate_pause_play.xml')
-rw-r--r--app/src/main/res/drawable/ic_animate_pause_play.xml27
1 files changed, 27 insertions, 0 deletions
diff --git a/app/src/main/res/drawable/ic_animate_pause_play.xml b/app/src/main/res/drawable/ic_animate_pause_play.xml
new file mode 100644
index 000000000..cc68279cd
--- /dev/null
+++ b/app/src/main/res/drawable/ic_animate_pause_play.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+<animated-vector
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ xmlns:aapt="http://schemas.android.com/aapt"
+ android:drawable="@drawable/ic_animate_play"
+ tools:ignore="NewApi">
+ <target android:name="path">
+ <aapt:attr name="android:animation">
+ <objectAnimator
+ android:duration="@integer/fragment_transition_duration"
+ android:propertyName="pathData"
+ android:valueFrom="@string/svg_animatable_pause"
+ android:valueTo="@string/svg_animatable_play"
+ android:valueType="pathType"/>
+ </aapt:attr>
+ </target>
+ <target android:name="group">
+ <aapt:attr name="android:animation">
+ <objectAnimator
+ android:duration="@integer/fragment_transition_duration"
+ android:propertyName="rotation"
+ android:valueFrom="-90"
+ android:valueTo="0"/>
+ </aapt:attr>
+ </target>
+</animated-vector>