blob: f2dc40291ce62b35f5b8909cee27c7a9c0c8af41 [file] [log] [blame]
John Spurlock86005342014-05-23 11:58:00 -04001<?xml version="1.0" encoding="utf-8"?>
2<!--
3 Copyright (C) 2014 The Android Open Source Project
4
5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
8
9 http://www.apache.org/licenses/LICENSE-2.0
10
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
16-->
17<!-- extends LinearLayout -->
18<com.android.systemui.volume.ZenModePanel xmlns:android="http://schemas.android.com/apk/res/android"
19 android:id="@+id/zen_mode_panel"
20 android:layout_width="match_parent"
21 android:layout_height="wrap_content"
John Spurlockae641c92014-06-30 18:11:40 -040022 android:clipChildren="false"
John Spurlockeb2727b2014-07-19 23:11:36 -040023 android:orientation="vertical" >
John Spurlock86005342014-05-23 11:58:00 -040024
John Spurlockeb2727b2014-07-19 23:11:36 -040025 <FrameLayout
John Spurlock86005342014-05-23 11:58:00 -040026 android:layout_width="match_parent"
27 android:layout_height="wrap_content"
John Spurlockbb4a7022014-11-08 12:40:19 -050028 android:minHeight="8dp"
John Spurlock4f558f72014-07-20 11:50:35 -040029 android:elevation="4dp"
John Spurlockeb2727b2014-07-19 23:11:36 -040030 android:background="@drawable/qs_background_secondary" >
31
32 <com.android.systemui.volume.SegmentedButtons
33 android:id="@+id/zen_buttons"
34 android:layout_width="match_parent"
35 android:layout_height="wrap_content"
John Spurlockbb4a7022014-11-08 12:40:19 -050036 android:layout_marginLeft="8dp"
37 android:layout_marginRight="8dp"
John Spurlock4e3eb1a2014-08-20 15:54:19 -040038 android:layout_marginBottom="8dp"
John Spurlockeb2727b2014-07-19 23:11:36 -040039 android:clipChildren="false" />
40 </FrameLayout>
John Spurlockae641c92014-06-30 18:11:40 -040041
PauloftheWest2cabb422014-09-16 10:29:51 -070042 <RelativeLayout
John Spurlockae641c92014-06-30 18:11:40 -040043 android:id="@+id/zen_subhead"
44 android:layout_width="match_parent"
John Spurlockeb2727b2014-07-19 23:11:36 -040045 android:layout_height="62dp"
John Spurlock27c7b922014-09-23 14:59:51 -040046 android:gravity="center_vertical"
John Spurlockeb2727b2014-07-19 23:11:36 -040047 android:paddingLeft="8dp"
48 android:paddingRight="8dp" >
John Spurlockae641c92014-06-30 18:11:40 -040049
50 <TextView
51 android:id="@+id/zen_subhead_collapsed"
52 android:layout_width="wrap_content"
John Spurlockeb2727b2014-07-19 23:11:36 -040053 android:layout_height="48dp"
54 android:layout_gravity="center_vertical"
55 android:gravity="center_vertical"
56 android:paddingLeft="8dp"
John Spurlock4f558f72014-07-20 11:50:35 -040057 android:paddingRight="4dp"
John Spurlockae641c92014-06-30 18:11:40 -040058 android:background="@drawable/btn_borderless_rect"
59 android:clickable="true"
60 android:drawableEnd="@drawable/qs_subhead_caret"
John Spurlockae641c92014-06-30 18:11:40 -040061 android:textAppearance="@style/TextAppearance.QS.Subhead" />
62
63 <TextView
64 android:id="@+id/zen_subhead_expanded"
65 android:layout_width="wrap_content"
John Spurlockeb2727b2014-07-19 23:11:36 -040066 android:layout_height="48dp"
67 android:layout_gravity="center_vertical"
John Spurlockae641c92014-06-30 18:11:40 -040068 android:gravity="center_vertical"
John Spurlockeb2727b2014-07-19 23:11:36 -040069 android:paddingLeft="8dp"
John Spurlockae641c92014-06-30 18:11:40 -040070 android:textAppearance="@style/TextAppearance.QS.Subhead" />
71
72 <ImageView
73 android:id="@+id/zen_more_settings"
John Spurlockeb2727b2014-07-19 23:11:36 -040074 android:layout_width="48dp"
75 android:layout_height="48dp"
PauloftheWest2cabb422014-09-16 10:29:51 -070076 android:layout_alignParentEnd="true"
John Spurlockae641c92014-06-30 18:11:40 -040077 android:background="@drawable/btn_borderless_rect"
78 android:clickable="true"
John Spurlockb7533722014-09-22 15:14:48 -040079 android:contentDescription="@string/accessibility_desc_settings"
John Spurlockae641c92014-06-30 18:11:40 -040080 android:scaleType="center"
Dan Sandlere9a4e902014-07-31 01:06:43 -040081 android:src="@drawable/ic_settings" />
PauloftheWest2cabb422014-09-16 10:29:51 -070082
83 </RelativeLayout>
John Spurlockae641c92014-06-30 18:11:40 -040084
85 <LinearLayout
86 android:id="@+id/zen_conditions"
87 android:layout_width="match_parent"
88 android:layout_height="wrap_content"
89 android:orientation="vertical"
John Spurlockeb2727b2014-07-19 23:11:36 -040090 android:paddingBottom="@dimen/qs_panel_padding" />
John Spurlock86005342014-05-23 11:58:00 -040091
Dan Sandlere9a4e902014-07-31 01:06:43 -040092</com.android.systemui.volume.ZenModePanel>