From d88b985229a07b79485cf63f46fa180fd5fe35bd Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Thu, 25 Jun 2015 10:43:21 -0700 Subject: Revise layout/style of VoicemailPlaybackLayout. - Delete now-unused old icons. + Add new material icons for voicemail playback. + Rearrange buttons, padding/spacing. + Change ripple feedback when pressing button. + Use different text fields for total duration and state labels. Bug: 22070564 Change-Id: Ibc9b9908154ac0a846f828bb9707a61ab15f8ba5 --- res/drawable-hdpi/ic_pause_24dp.png | Bin 0 -> 105 bytes res/drawable-hdpi/ic_play_active_holo_dark.png | Bin 1855 -> 0 bytes res/drawable-hdpi/ic_play_holo_dark.png | Bin 1099 -> 0 bytes res/drawable-hdpi/ic_play_holo_light.png | Bin 1050 -> 0 bytes res/drawable-hdpi/ic_vm_minus_dis.png | Bin 448 -> 0 bytes res/drawable-hdpi/ic_vm_minus_dk.png | Bin 449 -> 0 bytes res/drawable-hdpi/ic_vm_pause_dis.png | Bin 586 -> 0 bytes res/drawable-hdpi/ic_vm_pause_dk.png | Bin 586 -> 0 bytes res/drawable-hdpi/ic_vm_play_dis.png | Bin 1010 -> 0 bytes res/drawable-hdpi/ic_vm_play_dk.png | Bin 1030 -> 0 bytes res/drawable-hdpi/ic_vm_plus_dis.png | Bin 673 -> 0 bytes res/drawable-hdpi/ic_vm_plus_dk.png | Bin 673 -> 0 bytes res/drawable-hdpi/ic_volume_down_24dp.png | Bin 0 -> 186 bytes res/drawable-hdpi/ic_volume_up_24dp.png | Bin 0 -> 365 bytes res/drawable-mdpi/ic_pause_24dp.png | Bin 0 -> 83 bytes res/drawable-mdpi/ic_play_active_holo_dark.png | Bin 1380 -> 0 bytes res/drawable-mdpi/ic_play_holo_dark.png | Bin 819 -> 0 bytes res/drawable-mdpi/ic_play_holo_light.png | Bin 769 -> 0 bytes res/drawable-mdpi/ic_vm_minus_dis.png | Bin 429 -> 0 bytes res/drawable-mdpi/ic_vm_minus_dk.png | Bin 427 -> 0 bytes res/drawable-mdpi/ic_vm_pause_dis.png | Bin 493 -> 0 bytes res/drawable-mdpi/ic_vm_pause_dk.png | Bin 493 -> 0 bytes res/drawable-mdpi/ic_vm_play_dis.png | Bin 794 -> 0 bytes res/drawable-mdpi/ic_vm_play_dk.png | Bin 793 -> 0 bytes res/drawable-mdpi/ic_vm_plus_dis.png | Bin 586 -> 0 bytes res/drawable-mdpi/ic_vm_plus_dk.png | Bin 583 -> 0 bytes res/drawable-mdpi/ic_volume_down_24dp.png | Bin 0 -> 139 bytes res/drawable-mdpi/ic_volume_up_24dp.png | Bin 0 -> 251 bytes res/drawable-xhdpi/ic_pause_24dp.png | Bin 0 -> 90 bytes res/drawable-xhdpi/ic_play_active_holo_dark.png | Bin 2447 -> 0 bytes res/drawable-xhdpi/ic_play_holo_dark.png | Bin 1469 -> 0 bytes res/drawable-xhdpi/ic_play_holo_light.png | Bin 1312 -> 0 bytes res/drawable-xhdpi/ic_vm_minus_dis.png | Bin 510 -> 0 bytes res/drawable-xhdpi/ic_vm_minus_dk.png | Bin 508 -> 0 bytes res/drawable-xhdpi/ic_vm_pause_dis.png | Bin 594 -> 0 bytes res/drawable-xhdpi/ic_vm_pause_dk.png | Bin 593 -> 0 bytes res/drawable-xhdpi/ic_vm_play_dis.png | Bin 1258 -> 0 bytes res/drawable-xhdpi/ic_vm_play_dk.png | Bin 1260 -> 0 bytes res/drawable-xhdpi/ic_vm_plus_dis.png | Bin 855 -> 0 bytes res/drawable-xhdpi/ic_vm_plus_dk.png | Bin 852 -> 0 bytes res/drawable-xhdpi/ic_volume_down_24dp.png | Bin 0 -> 212 bytes res/drawable-xhdpi/ic_volume_up_24dp.png | Bin 0 -> 455 bytes res/drawable-xxhdpi/ic_pause_24dp.png | Bin 0 -> 92 bytes res/drawable-xxhdpi/ic_play_active_holo_dark.png | Bin 2648 -> 0 bytes res/drawable-xxhdpi/ic_play_holo_dark.png | Bin 2557 -> 0 bytes res/drawable-xxhdpi/ic_play_holo_light.png | Bin 2579 -> 0 bytes res/drawable-xxhdpi/ic_vm_minus_dis.png | Bin 1195 -> 0 bytes res/drawable-xxhdpi/ic_vm_minus_dk.png | Bin 1194 -> 0 bytes res/drawable-xxhdpi/ic_vm_pause_dis.png | Bin 1168 -> 0 bytes res/drawable-xxhdpi/ic_vm_pause_dk.png | Bin 1167 -> 0 bytes res/drawable-xxhdpi/ic_vm_play_dis.png | Bin 1881 -> 0 bytes res/drawable-xxhdpi/ic_vm_play_dk.png | Bin 1878 -> 0 bytes res/drawable-xxhdpi/ic_vm_plus_dis.png | Bin 1264 -> 0 bytes res/drawable-xxhdpi/ic_vm_plus_dk.png | Bin 1264 -> 0 bytes res/drawable-xxhdpi/ic_volume_down_24dp.png | Bin 0 -> 291 bytes res/drawable-xxhdpi/ic_volume_up_24dp.png | Bin 0 -> 654 bytes res/drawable-xxxhdpi/ic_pause_24dp.png | Bin 0 -> 94 bytes res/drawable-xxxhdpi/ic_volume_down_24dp.png | Bin 0 -> 356 bytes res/drawable-xxxhdpi/ic_volume_up_24dp.png | Bin 0 -> 878 bytes res/drawable/ic_hold_pause.xml | 21 ---- res/drawable/ic_minus.xml | 20 ---- res/drawable/ic_pause.xml | 31 ++++++ res/drawable/ic_play.xml | 21 ---- res/drawable/ic_play_arrow.xml | 32 ++++++ res/drawable/ic_plus.xml | 20 ---- res/drawable/oval_ripple.xml | 26 +++++ res/layout/voicemail_playback_layout.xml | 124 ++++++++++++--------- res/values/colors.xml | 20 ++-- res/values/dimens.xml | 2 + res/values/styles.xml | 11 ++ .../dialer/voicemail/VoicemailPlaybackLayout.java | 52 +++++---- 71 files changed, 213 insertions(+), 167 deletions(-) create mode 100644 res/drawable-hdpi/ic_pause_24dp.png delete mode 100644 res/drawable-hdpi/ic_play_active_holo_dark.png delete mode 100644 res/drawable-hdpi/ic_play_holo_dark.png delete mode 100644 res/drawable-hdpi/ic_play_holo_light.png delete mode 100644 res/drawable-hdpi/ic_vm_minus_dis.png delete mode 100644 res/drawable-hdpi/ic_vm_minus_dk.png delete mode 100644 res/drawable-hdpi/ic_vm_pause_dis.png delete mode 100644 res/drawable-hdpi/ic_vm_pause_dk.png delete mode 100644 res/drawable-hdpi/ic_vm_play_dis.png delete mode 100644 res/drawable-hdpi/ic_vm_play_dk.png delete mode 100644 res/drawable-hdpi/ic_vm_plus_dis.png delete mode 100644 res/drawable-hdpi/ic_vm_plus_dk.png create mode 100644 res/drawable-hdpi/ic_volume_down_24dp.png create mode 100644 res/drawable-hdpi/ic_volume_up_24dp.png create mode 100644 res/drawable-mdpi/ic_pause_24dp.png delete mode 100644 res/drawable-mdpi/ic_play_active_holo_dark.png delete mode 100644 res/drawable-mdpi/ic_play_holo_dark.png delete mode 100644 res/drawable-mdpi/ic_play_holo_light.png delete mode 100644 res/drawable-mdpi/ic_vm_minus_dis.png delete mode 100644 res/drawable-mdpi/ic_vm_minus_dk.png delete mode 100644 res/drawable-mdpi/ic_vm_pause_dis.png delete mode 100644 res/drawable-mdpi/ic_vm_pause_dk.png delete mode 100644 res/drawable-mdpi/ic_vm_play_dis.png delete mode 100644 res/drawable-mdpi/ic_vm_play_dk.png delete mode 100644 res/drawable-mdpi/ic_vm_plus_dis.png delete mode 100644 res/drawable-mdpi/ic_vm_plus_dk.png create mode 100644 res/drawable-mdpi/ic_volume_down_24dp.png create mode 100644 res/drawable-mdpi/ic_volume_up_24dp.png create mode 100644 res/drawable-xhdpi/ic_pause_24dp.png delete mode 100644 res/drawable-xhdpi/ic_play_active_holo_dark.png delete mode 100644 res/drawable-xhdpi/ic_play_holo_dark.png delete mode 100644 res/drawable-xhdpi/ic_play_holo_light.png delete mode 100644 res/drawable-xhdpi/ic_vm_minus_dis.png delete mode 100644 res/drawable-xhdpi/ic_vm_minus_dk.png delete mode 100644 res/drawable-xhdpi/ic_vm_pause_dis.png delete mode 100644 res/drawable-xhdpi/ic_vm_pause_dk.png delete mode 100644 res/drawable-xhdpi/ic_vm_play_dis.png delete mode 100644 res/drawable-xhdpi/ic_vm_play_dk.png delete mode 100644 res/drawable-xhdpi/ic_vm_plus_dis.png delete mode 100644 res/drawable-xhdpi/ic_vm_plus_dk.png create mode 100644 res/drawable-xhdpi/ic_volume_down_24dp.png create mode 100644 res/drawable-xhdpi/ic_volume_up_24dp.png create mode 100644 res/drawable-xxhdpi/ic_pause_24dp.png delete mode 100644 res/drawable-xxhdpi/ic_play_active_holo_dark.png delete mode 100644 res/drawable-xxhdpi/ic_play_holo_dark.png delete mode 100644 res/drawable-xxhdpi/ic_play_holo_light.png delete mode 100644 res/drawable-xxhdpi/ic_vm_minus_dis.png delete mode 100644 res/drawable-xxhdpi/ic_vm_minus_dk.png delete mode 100644 res/drawable-xxhdpi/ic_vm_pause_dis.png delete mode 100644 res/drawable-xxhdpi/ic_vm_pause_dk.png delete mode 100644 res/drawable-xxhdpi/ic_vm_play_dis.png delete mode 100644 res/drawable-xxhdpi/ic_vm_play_dk.png delete mode 100644 res/drawable-xxhdpi/ic_vm_plus_dis.png delete mode 100644 res/drawable-xxhdpi/ic_vm_plus_dk.png create mode 100644 res/drawable-xxhdpi/ic_volume_down_24dp.png create mode 100644 res/drawable-xxhdpi/ic_volume_up_24dp.png create mode 100644 res/drawable-xxxhdpi/ic_pause_24dp.png create mode 100644 res/drawable-xxxhdpi/ic_volume_down_24dp.png create mode 100644 res/drawable-xxxhdpi/ic_volume_up_24dp.png delete mode 100644 res/drawable/ic_hold_pause.xml delete mode 100644 res/drawable/ic_minus.xml create mode 100644 res/drawable/ic_pause.xml delete mode 100644 res/drawable/ic_play.xml create mode 100644 res/drawable/ic_play_arrow.xml delete mode 100644 res/drawable/ic_plus.xml create mode 100644 res/drawable/oval_ripple.xml diff --git a/res/drawable-hdpi/ic_pause_24dp.png b/res/drawable-hdpi/ic_pause_24dp.png new file mode 100644 index 000000000..4d2ea05c4 Binary files /dev/null and b/res/drawable-hdpi/ic_pause_24dp.png differ diff --git a/res/drawable-hdpi/ic_play_active_holo_dark.png b/res/drawable-hdpi/ic_play_active_holo_dark.png deleted file mode 100644 index 179b5a185..000000000 Binary files a/res/drawable-hdpi/ic_play_active_holo_dark.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_play_holo_dark.png b/res/drawable-hdpi/ic_play_holo_dark.png deleted file mode 100644 index d5fd23597..000000000 Binary files a/res/drawable-hdpi/ic_play_holo_dark.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_play_holo_light.png b/res/drawable-hdpi/ic_play_holo_light.png deleted file mode 100644 index 684df0074..000000000 Binary files a/res/drawable-hdpi/ic_play_holo_light.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_vm_minus_dis.png b/res/drawable-hdpi/ic_vm_minus_dis.png deleted file mode 100644 index 5ff08b2af..000000000 Binary files a/res/drawable-hdpi/ic_vm_minus_dis.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_vm_minus_dk.png b/res/drawable-hdpi/ic_vm_minus_dk.png deleted file mode 100644 index a2073afec..000000000 Binary files a/res/drawable-hdpi/ic_vm_minus_dk.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_vm_pause_dis.png b/res/drawable-hdpi/ic_vm_pause_dis.png deleted file mode 100644 index 905451518..000000000 Binary files a/res/drawable-hdpi/ic_vm_pause_dis.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_vm_pause_dk.png b/res/drawable-hdpi/ic_vm_pause_dk.png deleted file mode 100644 index beab6fd81..000000000 Binary files a/res/drawable-hdpi/ic_vm_pause_dk.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_vm_play_dis.png b/res/drawable-hdpi/ic_vm_play_dis.png deleted file mode 100644 index 5ba484728..000000000 Binary files a/res/drawable-hdpi/ic_vm_play_dis.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_vm_play_dk.png b/res/drawable-hdpi/ic_vm_play_dk.png deleted file mode 100644 index 920174c37..000000000 Binary files a/res/drawable-hdpi/ic_vm_play_dk.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_vm_plus_dis.png b/res/drawable-hdpi/ic_vm_plus_dis.png deleted file mode 100644 index d39c45e9d..000000000 Binary files a/res/drawable-hdpi/ic_vm_plus_dis.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_vm_plus_dk.png b/res/drawable-hdpi/ic_vm_plus_dk.png deleted file mode 100644 index 7f2656f7e..000000000 Binary files a/res/drawable-hdpi/ic_vm_plus_dk.png and /dev/null differ diff --git a/res/drawable-hdpi/ic_volume_down_24dp.png b/res/drawable-hdpi/ic_volume_down_24dp.png new file mode 100644 index 000000000..e22e92c85 Binary files /dev/null and b/res/drawable-hdpi/ic_volume_down_24dp.png differ diff --git a/res/drawable-hdpi/ic_volume_up_24dp.png b/res/drawable-hdpi/ic_volume_up_24dp.png new file mode 100644 index 000000000..57d787163 Binary files /dev/null and b/res/drawable-hdpi/ic_volume_up_24dp.png differ diff --git a/res/drawable-mdpi/ic_pause_24dp.png b/res/drawable-mdpi/ic_pause_24dp.png new file mode 100644 index 000000000..2272d478c Binary files /dev/null and b/res/drawable-mdpi/ic_pause_24dp.png differ diff --git a/res/drawable-mdpi/ic_play_active_holo_dark.png b/res/drawable-mdpi/ic_play_active_holo_dark.png deleted file mode 100644 index 042d8c158..000000000 Binary files a/res/drawable-mdpi/ic_play_active_holo_dark.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_play_holo_dark.png b/res/drawable-mdpi/ic_play_holo_dark.png deleted file mode 100644 index a31671d93..000000000 Binary files a/res/drawable-mdpi/ic_play_holo_dark.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_play_holo_light.png b/res/drawable-mdpi/ic_play_holo_light.png deleted file mode 100644 index f36edf93b..000000000 Binary files a/res/drawable-mdpi/ic_play_holo_light.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_vm_minus_dis.png b/res/drawable-mdpi/ic_vm_minus_dis.png deleted file mode 100644 index b7928a136..000000000 Binary files a/res/drawable-mdpi/ic_vm_minus_dis.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_vm_minus_dk.png b/res/drawable-mdpi/ic_vm_minus_dk.png deleted file mode 100644 index 250f6e2ab..000000000 Binary files a/res/drawable-mdpi/ic_vm_minus_dk.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_vm_pause_dis.png b/res/drawable-mdpi/ic_vm_pause_dis.png deleted file mode 100644 index 4c4d0e237..000000000 Binary files a/res/drawable-mdpi/ic_vm_pause_dis.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_vm_pause_dk.png b/res/drawable-mdpi/ic_vm_pause_dk.png deleted file mode 100644 index f7aeaaf61..000000000 Binary files a/res/drawable-mdpi/ic_vm_pause_dk.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_vm_play_dis.png b/res/drawable-mdpi/ic_vm_play_dis.png deleted file mode 100644 index 74e547051..000000000 Binary files a/res/drawable-mdpi/ic_vm_play_dis.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_vm_play_dk.png b/res/drawable-mdpi/ic_vm_play_dk.png deleted file mode 100644 index 7606af920..000000000 Binary files a/res/drawable-mdpi/ic_vm_play_dk.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_vm_plus_dis.png b/res/drawable-mdpi/ic_vm_plus_dis.png deleted file mode 100644 index 3f853097e..000000000 Binary files a/res/drawable-mdpi/ic_vm_plus_dis.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_vm_plus_dk.png b/res/drawable-mdpi/ic_vm_plus_dk.png deleted file mode 100644 index 74622f014..000000000 Binary files a/res/drawable-mdpi/ic_vm_plus_dk.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_volume_down_24dp.png b/res/drawable-mdpi/ic_volume_down_24dp.png new file mode 100644 index 000000000..10992ed70 Binary files /dev/null and b/res/drawable-mdpi/ic_volume_down_24dp.png differ diff --git a/res/drawable-mdpi/ic_volume_up_24dp.png b/res/drawable-mdpi/ic_volume_up_24dp.png new file mode 100644 index 000000000..7cfd4c7b8 Binary files /dev/null and b/res/drawable-mdpi/ic_volume_up_24dp.png differ diff --git a/res/drawable-xhdpi/ic_pause_24dp.png b/res/drawable-xhdpi/ic_pause_24dp.png new file mode 100644 index 000000000..f49aed757 Binary files /dev/null and b/res/drawable-xhdpi/ic_pause_24dp.png differ diff --git a/res/drawable-xhdpi/ic_play_active_holo_dark.png b/res/drawable-xhdpi/ic_play_active_holo_dark.png deleted file mode 100644 index 20d058378..000000000 Binary files a/res/drawable-xhdpi/ic_play_active_holo_dark.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_play_holo_dark.png b/res/drawable-xhdpi/ic_play_holo_dark.png deleted file mode 100644 index afa6bb0e6..000000000 Binary files a/res/drawable-xhdpi/ic_play_holo_dark.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_play_holo_light.png b/res/drawable-xhdpi/ic_play_holo_light.png deleted file mode 100644 index f79757664..000000000 Binary files a/res/drawable-xhdpi/ic_play_holo_light.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_vm_minus_dis.png b/res/drawable-xhdpi/ic_vm_minus_dis.png deleted file mode 100644 index acee602b1..000000000 Binary files a/res/drawable-xhdpi/ic_vm_minus_dis.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_vm_minus_dk.png b/res/drawable-xhdpi/ic_vm_minus_dk.png deleted file mode 100644 index 450041bc5..000000000 Binary files a/res/drawable-xhdpi/ic_vm_minus_dk.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_vm_pause_dis.png b/res/drawable-xhdpi/ic_vm_pause_dis.png deleted file mode 100644 index 41cffcfd3..000000000 Binary files a/res/drawable-xhdpi/ic_vm_pause_dis.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_vm_pause_dk.png b/res/drawable-xhdpi/ic_vm_pause_dk.png deleted file mode 100644 index a4e1dbb2c..000000000 Binary files a/res/drawable-xhdpi/ic_vm_pause_dk.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_vm_play_dis.png b/res/drawable-xhdpi/ic_vm_play_dis.png deleted file mode 100644 index 31d3348e2..000000000 Binary files a/res/drawable-xhdpi/ic_vm_play_dis.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_vm_play_dk.png b/res/drawable-xhdpi/ic_vm_play_dk.png deleted file mode 100644 index 07f0c1907..000000000 Binary files a/res/drawable-xhdpi/ic_vm_play_dk.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_vm_plus_dis.png b/res/drawable-xhdpi/ic_vm_plus_dis.png deleted file mode 100644 index 176006170..000000000 Binary files a/res/drawable-xhdpi/ic_vm_plus_dis.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_vm_plus_dk.png b/res/drawable-xhdpi/ic_vm_plus_dk.png deleted file mode 100644 index 2f5e0051c..000000000 Binary files a/res/drawable-xhdpi/ic_vm_plus_dk.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_volume_down_24dp.png b/res/drawable-xhdpi/ic_volume_down_24dp.png new file mode 100644 index 000000000..2621bc15d Binary files /dev/null and b/res/drawable-xhdpi/ic_volume_down_24dp.png differ diff --git a/res/drawable-xhdpi/ic_volume_up_24dp.png b/res/drawable-xhdpi/ic_volume_up_24dp.png new file mode 100644 index 000000000..2ed00343b Binary files /dev/null and b/res/drawable-xhdpi/ic_volume_up_24dp.png differ diff --git a/res/drawable-xxhdpi/ic_pause_24dp.png b/res/drawable-xxhdpi/ic_pause_24dp.png new file mode 100644 index 000000000..7192ad487 Binary files /dev/null and b/res/drawable-xxhdpi/ic_pause_24dp.png differ diff --git a/res/drawable-xxhdpi/ic_play_active_holo_dark.png b/res/drawable-xxhdpi/ic_play_active_holo_dark.png deleted file mode 100644 index fc3424368..000000000 Binary files a/res/drawable-xxhdpi/ic_play_active_holo_dark.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_play_holo_dark.png b/res/drawable-xxhdpi/ic_play_holo_dark.png deleted file mode 100644 index 303702745..000000000 Binary files a/res/drawable-xxhdpi/ic_play_holo_dark.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_play_holo_light.png b/res/drawable-xxhdpi/ic_play_holo_light.png deleted file mode 100644 index b7b425ca8..000000000 Binary files a/res/drawable-xxhdpi/ic_play_holo_light.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_vm_minus_dis.png b/res/drawable-xxhdpi/ic_vm_minus_dis.png deleted file mode 100644 index 578d409ed..000000000 Binary files a/res/drawable-xxhdpi/ic_vm_minus_dis.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_vm_minus_dk.png b/res/drawable-xxhdpi/ic_vm_minus_dk.png deleted file mode 100644 index 80bc75a34..000000000 Binary files a/res/drawable-xxhdpi/ic_vm_minus_dk.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_vm_pause_dis.png b/res/drawable-xxhdpi/ic_vm_pause_dis.png deleted file mode 100644 index 44adfdea1..000000000 Binary files a/res/drawable-xxhdpi/ic_vm_pause_dis.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_vm_pause_dk.png b/res/drawable-xxhdpi/ic_vm_pause_dk.png deleted file mode 100644 index 47fb13635..000000000 Binary files a/res/drawable-xxhdpi/ic_vm_pause_dk.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_vm_play_dis.png b/res/drawable-xxhdpi/ic_vm_play_dis.png deleted file mode 100644 index 9ad3d68e8..000000000 Binary files a/res/drawable-xxhdpi/ic_vm_play_dis.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_vm_play_dk.png b/res/drawable-xxhdpi/ic_vm_play_dk.png deleted file mode 100644 index c47b7e0b0..000000000 Binary files a/res/drawable-xxhdpi/ic_vm_play_dk.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_vm_plus_dis.png b/res/drawable-xxhdpi/ic_vm_plus_dis.png deleted file mode 100644 index aad67ca8c..000000000 Binary files a/res/drawable-xxhdpi/ic_vm_plus_dis.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_vm_plus_dk.png b/res/drawable-xxhdpi/ic_vm_plus_dk.png deleted file mode 100644 index b23dfabca..000000000 Binary files a/res/drawable-xxhdpi/ic_vm_plus_dk.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_volume_down_24dp.png b/res/drawable-xxhdpi/ic_volume_down_24dp.png new file mode 100644 index 000000000..5eb8b671f Binary files /dev/null and b/res/drawable-xxhdpi/ic_volume_down_24dp.png differ diff --git a/res/drawable-xxhdpi/ic_volume_up_24dp.png b/res/drawable-xxhdpi/ic_volume_up_24dp.png new file mode 100644 index 000000000..2e751a40f Binary files /dev/null and b/res/drawable-xxhdpi/ic_volume_up_24dp.png differ diff --git a/res/drawable-xxxhdpi/ic_pause_24dp.png b/res/drawable-xxxhdpi/ic_pause_24dp.png new file mode 100644 index 000000000..660ac6585 Binary files /dev/null and b/res/drawable-xxxhdpi/ic_pause_24dp.png differ diff --git a/res/drawable-xxxhdpi/ic_volume_down_24dp.png b/res/drawable-xxxhdpi/ic_volume_down_24dp.png new file mode 100644 index 000000000..4ab55abbd Binary files /dev/null and b/res/drawable-xxxhdpi/ic_volume_down_24dp.png differ diff --git a/res/drawable-xxxhdpi/ic_volume_up_24dp.png b/res/drawable-xxxhdpi/ic_volume_up_24dp.png new file mode 100644 index 000000000..82972b4e5 Binary files /dev/null and b/res/drawable-xxxhdpi/ic_volume_up_24dp.png differ diff --git a/res/drawable/ic_hold_pause.xml b/res/drawable/ic_hold_pause.xml deleted file mode 100644 index ec9412045..000000000 --- a/res/drawable/ic_hold_pause.xml +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - - diff --git a/res/drawable/ic_minus.xml b/res/drawable/ic_minus.xml deleted file mode 100644 index 2bd0699ec..000000000 --- a/res/drawable/ic_minus.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - diff --git a/res/drawable/ic_pause.xml b/res/drawable/ic_pause.xml new file mode 100644 index 000000000..7015a6647 --- /dev/null +++ b/res/drawable/ic_pause.xml @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + diff --git a/res/drawable/ic_play.xml b/res/drawable/ic_play.xml deleted file mode 100644 index 6a09c899a..000000000 --- a/res/drawable/ic_play.xml +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - - diff --git a/res/drawable/ic_play_arrow.xml b/res/drawable/ic_play_arrow.xml new file mode 100644 index 000000000..1a9ee978f --- /dev/null +++ b/res/drawable/ic_play_arrow.xml @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + diff --git a/res/drawable/ic_plus.xml b/res/drawable/ic_plus.xml deleted file mode 100644 index c60667430..000000000 --- a/res/drawable/ic_plus.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - diff --git a/res/drawable/oval_ripple.xml b/res/drawable/oval_ripple.xml new file mode 100644 index 000000000..0022d2671 --- /dev/null +++ b/res/drawable/oval_ripple.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + diff --git a/res/layout/voicemail_playback_layout.xml b/res/layout/voicemail_playback_layout.xml index 97bb5f8a3..56865fcd6 100644 --- a/res/layout/voicemail_playback_layout.xml +++ b/res/layout/voicemail_playback_layout.xml @@ -18,74 +18,94 @@ xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" + android:layout_marginStart="64dp" + android:layout_marginEnd="24dp" android:orientation="vertical" android:background="@color/background_dialer_call_log_list_item"> - + android:gravity="center" + android:textSize="14sp" /> - + + android:paddingTop="@dimen/voicemail_playback_top_padding" /> - + - + - + - + - + + + + + + + + + + + + + diff --git a/res/values/colors.xml b/res/values/colors.xml index c3b0fb5bc..8ce3c17ba 100644 --- a/res/values/colors.xml +++ b/res/values/colors.xml @@ -30,9 +30,11 @@ #ffffff #eee + + #b3000000 + @color/call_log_icon_tint @color/dialer_red_highlight_color - #33b5e5 @@ -41,19 +43,13 @@ #7d57c1 #ffffff - - #4d000000 - - #8e8e8e - - + @color/call_log_icon_tint + #80000000 + @color/dialer_theme_color + #cecece - - #39c9ff + @color/dialer_theme_color #660099cc diff --git a/res/values/dimens.xml b/res/values/dimens.xml index 206b44740..776cd1150 100644 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -145,4 +145,6 @@ 4dp 11dp 4dp + + 12dp diff --git a/res/values/styles.xml b/res/values/styles.xml index 7d5d42f8f..987ef4808 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -232,4 +232,15 @@ true true + + + + diff --git a/src/com/android/dialer/voicemail/VoicemailPlaybackLayout.java b/src/com/android/dialer/voicemail/VoicemailPlaybackLayout.java index ca487db56..2d65504e8 100644 --- a/src/com/android/dialer/voicemail/VoicemailPlaybackLayout.java +++ b/src/com/android/dialer/voicemail/VoicemailPlaybackLayout.java @@ -70,13 +70,13 @@ public class VoicemailPlaybackLayout extends LinearLayout /** Update rate for the slider, 30fps. */ private static final int SLIDER_UPDATE_PERIOD_MILLIS = 1000 / 30; - private int mDuration; + private int mDurationMs; private final ScheduledExecutorService mExecutorService; private final Object mLock = new Object(); @GuardedBy("mLock") private ScheduledFuture mScheduledFuture; - public PositionUpdater(int duration, ScheduledExecutorService executorService) { - mDuration = duration; + public PositionUpdater(int durationMs, ScheduledExecutorService executorService) { + mDurationMs = durationMs; mExecutorService = executorService; } @@ -85,15 +85,15 @@ public class VoicemailPlaybackLayout extends LinearLayout post(new Runnable() { @Override public void run() { - int currentPosition = 0; + int currentPositionMs = 0; synchronized (mLock) { if (mScheduledFuture == null || mPresenter == null) { // This task has been canceled. Just stop now. return; } - currentPosition = mPresenter.getMediaPlayerPosition(); + currentPositionMs = mPresenter.getMediaPlayerPosition(); } - setClipPosition(currentPosition, mDuration); + setClipPosition(currentPositionMs, mDurationMs); } }); } @@ -193,7 +193,9 @@ public class VoicemailPlaybackLayout extends LinearLayout private ImageButton mStartStopButton; private ImageButton mPlaybackSpeakerphone; private ImageButton mDeleteButton; - private TextView mPlaybackPosition; + private TextView mStateText; + private TextView mPositionText; + private TextView mTotalDurationText; private PositionUpdater mPositionUpdater; @@ -224,7 +226,9 @@ public class VoicemailPlaybackLayout extends LinearLayout mStartStopButton = (ImageButton) findViewById(R.id.playback_start_stop); mPlaybackSpeakerphone = (ImageButton) findViewById(R.id.playback_speakerphone); mDeleteButton = (ImageButton) findViewById(R.id.delete_voicemail); - mPlaybackPosition = (TextView) findViewById(R.id.playback_position_text); + mStateText = (TextView) findViewById(R.id.playback_state_text); + mPositionText = (TextView) findViewById(R.id.playback_position_text); + mTotalDurationText = (TextView) findViewById(R.id.total_duration_text); mPlaybackSeek.setOnSeekBarChangeListener(mSeekBarChangeListener); mStartStopButton.setOnClickListener(mStartStopButtonListener); @@ -236,7 +240,7 @@ public class VoicemailPlaybackLayout extends LinearLayout public void onPlaybackStarted(int duration, ScheduledExecutorService executorService) { mIsPlaying = true; - mStartStopButton.setImageResource(R.drawable.ic_hold_pause); + mStartStopButton.setImageResource(R.drawable.ic_pause); if (mPresenter != null) { onSpeakerphoneOn(mPresenter.isSpeakerphoneOn()); @@ -250,7 +254,7 @@ public class VoicemailPlaybackLayout extends LinearLayout public void onPlaybackStopped() { mIsPlaying = false; - mStartStopButton.setImageResource(R.drawable.ic_play); + mStartStopButton.setImageResource(R.drawable.ic_play_arrow); if (mPositionUpdater != null) { mPositionUpdater.stopUpdating(); @@ -265,7 +269,7 @@ public class VoicemailPlaybackLayout extends LinearLayout } disableUiElements(); - mPlaybackPosition.setText(getString(R.string.voicemail_playback_error)); + mPositionText.setText(getString(R.string.voicemail_playback_error)); } @@ -275,12 +279,12 @@ public class VoicemailPlaybackLayout extends LinearLayout } if (on) { - mPlaybackSpeakerphone.setImageResource(R.drawable.ic_speakerphone_on); + mPlaybackSpeakerphone.setImageResource(R.drawable.ic_volume_up_24dp); // Speaker is now on, tapping button will turn it off. mPlaybackSpeakerphone.setContentDescription( mContext.getString(R.string.voicemail_speaker_off)); } else { - mPlaybackSpeakerphone.setImageResource(R.drawable.ic_speakerphone_off); + mPlaybackSpeakerphone.setImageResource(R.drawable.ic_volume_down_24dp); // Speaker is now off, tapping button will turn it on. mPlaybackSpeakerphone.setContentDescription( mContext.getString(R.string.voicemail_speaker_on)); @@ -288,33 +292,36 @@ public class VoicemailPlaybackLayout extends LinearLayout } @Override - public void setClipPosition(int clipPositionInMillis, int clipLengthInMillis) { - int seekBarPosition = Math.max(0, clipPositionInMillis); - int seekBarMax = Math.max(seekBarPosition, clipLengthInMillis); + public void setClipPosition(int positionMs, int durationMs) { + int seekBarPositionMs = Math.max(0, positionMs); + int seekBarMax = Math.max(seekBarPositionMs, durationMs); if (mPlaybackSeek.getMax() != seekBarMax) { mPlaybackSeek.setMax(seekBarMax); } - mPlaybackSeek.setProgress(seekBarPosition); - mPlaybackPosition.setText(formatAsMinutesAndSeconds(seekBarMax - seekBarPosition)); + mPlaybackSeek.setProgress(seekBarPositionMs); + + mPositionText.setText(formatAsMinutesAndSeconds(seekBarPositionMs)); + mTotalDurationText.setText(formatAsMinutesAndSeconds(durationMs)); + mStateText.setText(null); } @Override public void setIsBuffering() { disableUiElements(); - mPlaybackPosition.setText(getString(R.string.voicemail_buffering)); + mStateText.setText(getString(R.string.voicemail_buffering)); } @Override public void setIsFetchingContent() { disableUiElements(); - mPlaybackPosition.setText(getString(R.string.voicemail_fetching_content)); + mStateText.setText(getString(R.string.voicemail_fetching_content)); } @Override public void setFetchContentTimeout() { disableUiElements(); - mPlaybackPosition.setText(getString(R.string.voicemail_fetching_timout)); + mStateText.setText(getString(R.string.voicemail_fetching_timout)); } @Override @@ -328,6 +335,9 @@ public class VoicemailPlaybackLayout extends LinearLayout mPlaybackSpeakerphone.setEnabled(false); mPlaybackSeek.setProgress(0); mPlaybackSeek.setEnabled(false); + + mPositionText.setText(formatAsMinutesAndSeconds(0)); + mTotalDurationText.setText(formatAsMinutesAndSeconds(0)); } @Override -- cgit v1.2.3