mirror of
https://github.com/oxen-io/session-android.git
synced 2025-12-03 04:22:23 +00:00
Improve animations on audio controls, enable push to talk
// FREEBIE
This commit is contained in:
35
res/drawable/pause_icon.xml
Normal file
35
res/drawable/pause_icon.xml
Normal file
@@ -0,0 +1,35 @@
|
||||
<vector
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="128"
|
||||
android:viewportHeight="128">
|
||||
<group
|
||||
android:name="@string/play_icon_group_parts"
|
||||
android:rotation="90"
|
||||
android:pivotX="64"
|
||||
android:pivotY="64"
|
||||
android:scaleX="1.5"
|
||||
android:scaleY="1.5">
|
||||
|
||||
<group android:name="@string/play_icon_group_top">
|
||||
<path
|
||||
android:name="@string/play_icon_top_path_name"
|
||||
android:pathData="@string/pause_icon_upper_path_data"
|
||||
android:fillColor="@android:color/white"
|
||||
android:strokeLineCap="butt"
|
||||
android:strokeLineJoin="miter"
|
||||
android:strokeMiterLimit="10"/>
|
||||
</group>
|
||||
<group android:name="@string/play_icon_group_bottom">
|
||||
<path
|
||||
android:name="@string/play_icon_bottom_path_name"
|
||||
android:pathData="@string/pause_icon_bottom_path_data"
|
||||
android:fillColor="@android:color/white"
|
||||
android:strokeLineCap="butt"
|
||||
android:strokeLineJoin="miter"
|
||||
android:strokeMiterLimit="10"/>
|
||||
</group>
|
||||
|
||||
</group>
|
||||
</vector>
|
||||
18
res/drawable/pause_to_play_animation.xml
Normal file
18
res/drawable/pause_to_play_animation.xml
Normal file
@@ -0,0 +1,18 @@
|
||||
<?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"
|
||||
android:drawable="@drawable/pause_icon"
|
||||
tools:targetApi="lollipop">
|
||||
|
||||
<target
|
||||
android:name="@string/play_icon_group_parts"
|
||||
android:animation="@animator/rotate_minus_90_animation"/>
|
||||
|
||||
<target
|
||||
android:name="@string/play_icon_top_path_name"
|
||||
android:animation="@animator/upper_pause_to_play_animation"/>
|
||||
|
||||
<target
|
||||
android:name="@string/play_icon_bottom_path_name"
|
||||
android:animation="@animator/bottom_pause_to_play_animation"/>
|
||||
</animated-vector>
|
||||
34
res/drawable/play_icon.xml
Normal file
34
res/drawable/play_icon.xml
Normal file
@@ -0,0 +1,34 @@
|
||||
<vector
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="128"
|
||||
android:viewportHeight="128">
|
||||
<group
|
||||
android:name="@string/play_icon_group_parts"
|
||||
android:pivotX="64"
|
||||
android:pivotY="64"
|
||||
android:scaleX="1.5"
|
||||
android:scaleY="1.5">
|
||||
|
||||
<group android:name="@string/play_icon_group_top">
|
||||
<path
|
||||
android:name="@string/play_icon_top_path_name"
|
||||
android:pathData="@string/play_icon_upper_path_data"
|
||||
android:fillColor="@android:color/white"
|
||||
android:strokeLineCap="butt"
|
||||
android:strokeLineJoin="miter"
|
||||
android:strokeMiterLimit="10"/>
|
||||
</group>
|
||||
<group android:name="@string/play_icon_group_bottom">
|
||||
<path
|
||||
android:name="@string/play_icon_bottom_path_name"
|
||||
android:pathData="@string/play_icon_bottom_path_data"
|
||||
android:fillColor="@android:color/white"
|
||||
android:strokeLineCap="butt"
|
||||
android:strokeLineJoin="miter"
|
||||
android:strokeMiterLimit="10"/>
|
||||
</group>
|
||||
|
||||
</group>
|
||||
</vector>
|
||||
18
res/drawable/play_to_pause_animation.xml
Normal file
18
res/drawable/play_to_pause_animation.xml
Normal file
@@ -0,0 +1,18 @@
|
||||
<?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"
|
||||
android:drawable="@drawable/play_icon"
|
||||
tools:targetApi="lollipop">
|
||||
|
||||
<target
|
||||
android:name="@string/play_icon_group_parts"
|
||||
android:animation="@animator/rotate_90_animation"/>
|
||||
|
||||
<target
|
||||
android:name="@string/play_icon_top_path_name"
|
||||
android:animation="@animator/upper_play_to_pause_animation"/>
|
||||
|
||||
<target
|
||||
android:name="@string/play_icon_bottom_path_name"
|
||||
android:animation="@animator/bottom_play_to_pause_animation"/>
|
||||
</animated-vector>
|
||||
Reference in New Issue
Block a user