forked from Tunous/Dawn
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix animation of play/pause button (Tunous#58)
Closes Tunous#53
- Loading branch information
Showing
3 changed files
with
61 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 0 additions & 31 deletions
31
app/src/main/java/me/saket/dank/utils/ReversibleAnimatedVectorDrawable.java
This file was deleted.
Oops, something went wrong.
45 changes: 45 additions & 0 deletions
45
app/src/main/res/drawable/avd_pause_to_play_white_24dp.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<animated-vector xmlns:aapt="http://schemas.android.com/aapt" | ||
xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<aapt:attr name="android:drawable"> | ||
<vector | ||
android:name="pausetoplay" | ||
android:width="24dp" | ||
android:height="24dp" | ||
android:viewportHeight="24" | ||
android:viewportWidth="24"> | ||
<group | ||
android:name="group" | ||
android:rotation="90" | ||
android:pivotX="12" | ||
android:pivotY="12"> | ||
<path | ||
android:name="path" | ||
android:fillColor="#fff" | ||
android:pathData="M 8 5 L 8 12 L 19 12 L 19 12 L 8 5 M 8 12 L 8 19 L 19 12 L 19 12 L 8 12" | ||
android:strokeWidth="1" /> | ||
</group> | ||
</vector> | ||
</aapt:attr> | ||
<target android:name="path"> | ||
<aapt:attr name="android:animation"> | ||
<objectAnimator | ||
android:duration="300" | ||
android:interpolator="@android:interpolator/fast_out_slow_in" | ||
android:propertyName="pathData" | ||
android:valueTo="M 8 5 L 8 12 L 19 12 L 19 12 L 8 5 M 8 12 L 8 19 L 19 12 L 19 12 L 8 12" | ||
android:valueFrom="M 5 6 L 5 10 L 19 10 L 19 6 L 5 6 M 5 14 L 5 18 L 19 18 L 19 14 L 5 14" | ||
android:valueType="pathType" /> | ||
</aapt:attr> | ||
</target> | ||
<target android:name="group"> | ||
<aapt:attr name="android:animation"> | ||
<objectAnimator | ||
android:duration="300" | ||
android:interpolator="@android:interpolator/fast_out_slow_in" | ||
android:propertyName="rotation" | ||
android:valueFrom="90" | ||
android:valueTo="0" | ||
android:valueType="floatType" /> | ||
</aapt:attr> | ||
</target> | ||
</animated-vector> |