summaryrefslogtreecommitdiffstats
path: root/res/drawable
diff options
context:
space:
mode:
authorAndrew Lee <anwlee@google.com>2015-06-25 10:43:21 -0700
committerAndrew Lee <anwlee@google.com>2015-06-25 14:48:32 -0700
commitd88b985229a07b79485cf63f46fa180fd5fe35bd (patch)
tree2cf870de832470aeb4441011a0e3375da413a8ab /res/drawable
parent0feab0229c1c70248ca411d0e95f79aa2ac70c00 (diff)
downloadandroid_packages_apps_Dialer-d88b985229a07b79485cf63f46fa180fd5fe35bd.tar.gz
android_packages_apps_Dialer-d88b985229a07b79485cf63f46fa180fd5fe35bd.tar.bz2
android_packages_apps_Dialer-d88b985229a07b79485cf63f46fa180fd5fe35bd.zip
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
Diffstat (limited to 'res/drawable')
-rw-r--r--res/drawable/ic_pause.xml (renamed from res/drawable/ic_hold_pause.xml)16
-rw-r--r--res/drawable/ic_play.xml21
-rw-r--r--res/drawable/ic_play_arrow.xml (renamed from res/drawable/ic_minus.xml)18
-rw-r--r--res/drawable/ic_plus.xml20
-rw-r--r--res/drawable/oval_ripple.xml26
5 files changed, 54 insertions, 47 deletions
diff --git a/res/drawable/ic_hold_pause.xml b/res/drawable/ic_pause.xml
index ec9412045..7015a6647 100644
--- a/res/drawable/ic_hold_pause.xml
+++ b/res/drawable/ic_pause.xml
@@ -15,7 +15,17 @@
-->
<selector xmlns:android="http://schemas.android.com/apk/res/android">
- <item android:state_enabled="false"
- android:drawable="@drawable/ic_vm_pause_dis" />
- <item android:drawable="@drawable/ic_vm_pause_dk" />
+
+ <item android:state_enabled="false">
+ <bitmap
+ android:src="@drawable/ic_pause_24dp"
+ android:tint="@color/voicemail_icon_disabled_tint" />
+ </item>
+
+ <item>
+ <bitmap
+ android:src="@drawable/ic_pause_24dp"
+ android:tint="@color/voicemail_playpause_icon_tint" />
+ </item>
+
</selector>
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 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!-- Copyright (C) 2011 The Android Open Source Project
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-
-<selector xmlns:android="http://schemas.android.com/apk/res/android">
- <item android:state_enabled="false"
- android:drawable="@drawable/ic_vm_play_dis" />
- <item android:drawable="@drawable/ic_vm_play_dk" />
-</selector>
diff --git a/res/drawable/ic_minus.xml b/res/drawable/ic_play_arrow.xml
index 2bd0699ec..1a9ee978f 100644
--- a/res/drawable/ic_minus.xml
+++ b/res/drawable/ic_play_arrow.xml
@@ -14,7 +14,19 @@
limitations under the License.
-->
-<selector xmlns:android="http://schemas.android.com/apk/res/android">
- <item android:state_enabled="false" android:drawable="@drawable/ic_vm_minus_dis" />
- <item android:drawable="@drawable/ic_vm_minus_dk" />
+<selector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:autoMirrored="true">
+
+ <item android:state_enabled="false">
+ <bitmap
+ android:src="@drawable/ic_play_arrow_24dp"
+ android:tint="@color/voicemail_icon_disabled_tint" />
+ </item>
+
+ <item>
+ <bitmap
+ android:src="@drawable/ic_play_arrow_24dp"
+ android:tint="@color/voicemail_playpause_icon_tint" />
+ </item>
+
</selector>
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 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!-- Copyright (C) 2011 The Android Open Source Project
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-
-<selector xmlns:android="http://schemas.android.com/apk/res/android">
- <item android:state_enabled="false" android:drawable="@drawable/ic_vm_plus_dis" />
- <item android:drawable="@drawable/ic_vm_plus_dk" />
-</selector>
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 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+ ~ Copyright (C) 2014 The Android Open Source Project
+ ~
+ ~ Licensed under the Apache License, Version 2.0 (the "License");
+ ~ you may not use this file except in compliance with the License.
+ ~ You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing, software
+ ~ distributed under the License is distributed on an "AS IS" BASIS,
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ ~ See the License for the specific language governing permissions and
+ ~ limitations under the License
+ -->
+
+<ripple xmlns:android="http://schemas.android.com/apk/res/android"
+ android:color="?android:attr/colorControlHighlight" >
+ <item>
+ <shape android:shape="oval">
+ <solid android:color="#fff" />
+ </shape>
+ </item>
+</ripple>