summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/res
diff options
context:
space:
mode:
authorJohn Spurlock <jspurlock@google.com>2014-08-22 22:09:34 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-08-22 22:09:35 +0000
commit7653a30ea0232ab8323ec51ddcba8d8054ca8a2f (patch)
tree36501e68b95fdf6af89b0497903912924b2bc3fd /packages/SystemUI/res
parent5fa3f3a995ba5bd86e460b1b5f72b2f1ada699fb (diff)
parentb4782526f5600d9759baac64b23e0c0cd05e2050 (diff)
downloadframeworks_base-7653a30ea0232ab8323ec51ddcba8d8054ca8a2f.zip
frameworks_base-7653a30ea0232ab8323ec51ddcba8d8054ca8a2f.tar.gz
frameworks_base-7653a30ea0232ab8323ec51ddcba8d8054ca8a2f.tar.bz2
Merge "Display notification effects suppressor in the volume panel." into lmp-dev
Diffstat (limited to 'packages/SystemUI/res')
-rw-r--r--packages/SystemUI/res/drawable/ic_ringer_mute.xml24
-rw-r--r--packages/SystemUI/res/layout/volume_panel_item.xml30
-rw-r--r--packages/SystemUI/res/values/styles.xml5
3 files changed, 52 insertions, 7 deletions
diff --git a/packages/SystemUI/res/drawable/ic_ringer_mute.xml b/packages/SystemUI/res/drawable/ic_ringer_mute.xml
new file mode 100644
index 0000000..dee6018
--- /dev/null
+++ b/packages/SystemUI/res/drawable/ic_ringer_mute.xml
@@ -0,0 +1,24 @@
+<!--
+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.
+-->
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="32dp"
+ android:height="32dp"
+ android:viewportWidth="48.0"
+ android:viewportHeight="48.0">
+ <path
+ android:fillColor="#FFFFFFFF"
+ android:pathData="M23.000000,44.000000c2.200000,0.000000 4.000000,-1.800000 4.000000,-4.000000l-8.000000,0.000000C19.000000,42.200001 20.799999,44.000000 23.000000,44.000000zM36.000000,21.000000c0.000000,-6.100000 -4.300000,-11.300000 -10.000000,-12.600000L26.000000,7.000000c0.000000,-1.700000 -1.300000,-3.000000 -3.000000,-3.000000c-1.700000,0.000000 -3.000000,1.300000 -3.000000,3.000000l0.000000,1.400000c-1.000000,0.200000 -2.000000,0.600000 -2.900000,1.100000L36.000000,28.400000L36.000000,21.000000zM35.500000,38.000000l4.000000,4.000000l2.500000,-2.500000L8.500000,6.000000L6.000000,8.500000l5.800000,5.800000C10.700000,16.299999 10.000000,18.600000 10.000000,21.000000l0.000000,11.000000l-4.000000,4.000000l0.000000,2.000000L35.500000,38.000000z"/>
+</vector>
diff --git a/packages/SystemUI/res/layout/volume_panel_item.xml b/packages/SystemUI/res/layout/volume_panel_item.xml
index 18b496c..85e3fb3 100644
--- a/packages/SystemUI/res/layout/volume_panel_item.xml
+++ b/packages/SystemUI/res/layout/volume_panel_item.xml
@@ -29,14 +29,30 @@
android:background="@drawable/btn_borderless_rect"
android:contentDescription="@null" />
- <SeekBar
- android:id="@+id/seekbar"
+ <FrameLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
- android:layout_weight="1"
- android:paddingBottom="0dp"
- android:paddingEnd="16dp"
- android:paddingStart="8dp"
- android:paddingTop="0dip" />
+ android:layout_weight="1" >
+ <TextView
+ android:id="@+id/suppressor"
+ android:visibility="gone"
+ android:textAppearance="@style/TextAppearance.QS.VolumeSuppressor"
+ android:paddingStart="8dp"
+ android:paddingEnd="8dp"
+ android:singleLine="true"
+ android:ellipsize="end"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content" />
+
+ <SeekBar
+ android:id="@+id/seekbar"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:paddingBottom="0dp"
+ android:paddingEnd="16dp"
+ android:paddingStart="8dp"
+ android:paddingTop="0dp" />
+
+ </FrameLayout>
</LinearLayout> \ No newline at end of file
diff --git a/packages/SystemUI/res/values/styles.xml b/packages/SystemUI/res/values/styles.xml
index 48a031a..8c1ac9f 100644
--- a/packages/SystemUI/res/values/styles.xml
+++ b/packages/SystemUI/res/values/styles.xml
@@ -141,6 +141,11 @@
<item name="android:textColor">@color/system_accent_color</item>
</style>
+ <style name="TextAppearance.QS.VolumeSuppressor">
+ <item name="android:textSize">14sp</item>
+ <item name="android:textColor">@color/qs_tile_text</item>
+ </style>
+
<style name="TextAppearance.QS.DetailButton">
<item name="android:textSize">14sp</item>
<item name="android:textAllCaps">true</item>