Improve animations on audio controls, enable push to talk

// FREEBIE
This commit is contained in:
Moxie Marlinspike
2016-11-21 18:58:10 -08:00
parent 3e008f6752
commit 8af9b7fd15
26 changed files with 259 additions and 23 deletions

View File

@@ -154,7 +154,8 @@
</declare-styleable>
<declare-styleable name="AudioView">
<attr name="tintColor" format="color" />
<attr name="foregroundTintColor" format="color" />
<attr name="backgroundTintColor" format="color" />
</declare-styleable>
<declare-styleable name="CircleColorImageView">

4
res/values/integers.xml Normal file
View File

@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<integer name="play_button_animation_duration">300</integer>
</resources>

View File

@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Play Icon -->
<string name="play_icon_upper_path_data">M 44 32 L 44 64 L 100 64 L 100 64 Z</string>
<string name="play_icon_bottom_path_data">M 44 96 L 44 64 L 100 64 L 100 64 Z</string>
<!-- Pause Icon -->
<string name="pause_icon_upper_path_data">M 32 40 L 32 56 L 96 56 L 96 40 Z</string>
<string name="pause_icon_bottom_path_data">M 32 88 L 32 72 L 96 72 L 96 88 Z</string>
<!-- Groups -->
<string name="play_icon_group_top">upperpart</string>
<string name="play_icon_group_bottom">bottompart</string>
<string name="play_icon_group_parts">parts</string>
<!-- Path Name -->
<string name="play_icon_top_path_name">upper</string>
<string name="play_icon_bottom_path_name">bottom</string>
</resources>