New animated PlayPauseDrawable

This commit is contained in:
Karim Abou Zeid 2015-04-08 22:09:01 +02:00
commit a27e5c6379
20 changed files with 282 additions and 246 deletions

View file

@ -1,20 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<group
android:name="rotationGroup"
android:pivotX="12"
android:pivotY="12">
<path
android:name="left"
android:fillColor="@android:color/white"
android:pathData="@string/drawable_vector_pause_left" />
<path
android:name="right"
android:fillColor="@android:color/white"
android:pathData="@string/drawable_vector_pause_right" />
</group>
</vector>

View file

@ -1,30 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<animated-selector xmlns:android="http://schemas.android.com/apk/res/android"
android:constantSize="true">
<item
android:id="@+id/pressed_selected"
android:state_selected="true"
android:state_pressed="true"
android:drawable="@drawable/ic_resume" />
<item
android:id="@+id/action_resume_state"
android:drawable="@drawable/ic_resume"
android:state_selected="true" />
<item
android:id="@+id/action_pause_state"
android:drawable="@drawable/ic_pause" />
<transition
android:fromId="@id/pressed_selected"
android:toId="@id/action_resume_state"
android:drawable="@drawable/ic_pause_to_ic_resume" />
<transition
android:fromId="@id/pressed_selected"
android:toId="@id/action_pause_state"
android:drawable="@drawable/ic_resume_to_ic_pause" />
</animated-selector>

View file

@ -1,13 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<animated-vector xmlns:android="http://schemas.android.com/apk/res/android"
android:drawable="@drawable/ic_pause">
<target
android:name="rotationGroup"
android:animation="@anim/drawable_pause_to_resume_group" />
<target
android:name="left"
android:animation="@anim/drawable_pause_to_resume_left" />
<target
android:name="right"
android:animation="@anim/drawable_pause_to_resume_right" />
</animated-vector>

View file

@ -1,21 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<group
android:name="rotationGroup"
android:pivotX="12"
android:pivotY="12"
android:rotation="90">
<path
android:name="left"
android:fillColor="@android:color/white"
android:pathData="@string/drawable_vector_resume_left" />
<path
android:name="right"
android:fillColor="@android:color/white"
android:pathData="@string/drawable_vector_resume_right" />
</group>
</vector>

View file

@ -1,13 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<animated-vector xmlns:android="http://schemas.android.com/apk/res/android"
android:drawable="@drawable/ic_resume">
<target
android:name="rotationGroup"
android:animation="@anim/drawable_resume_to_pause_group" />
<target
android:name="left"
android:animation="@anim/drawable_resume_to_pause_left" />
<target
android:name="right"
android:animation="@anim/drawable_resume_to_pause_right" />
</animated-vector>