• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?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"
22    android:clipChildren="false"
23    android:orientation="vertical" >
24
25    <com.android.systemui.volume.SegmentedButtons
26        android:id="@+id/zen_buttons"
27        android:background="@drawable/segmented_buttons_background"
28        android:layout_width="match_parent"
29        android:layout_height="wrap_content"
30        android:layout_marginStart="16dp"
31        android:layout_marginEnd="16dp"
32        android:layout_marginTop="8dp"
33        android:layout_marginBottom="8dp" />
34
35    <RelativeLayout
36        android:id="@+id/zen_introduction"
37        android:layout_width="match_parent"
38        android:layout_height="wrap_content"
39        android:layout_marginStart="16dp"
40        android:layout_marginEnd="16dp"
41        android:paddingTop="8dp"
42        android:paddingBottom="8dp"
43        android:background="@drawable/zen_introduction_message_background"
44        android:theme="@*android:style/ThemeOverlay.DeviceDefault.Accent.Light">
45
46        <ImageView
47            android:id="@+id/zen_introduction_confirm"
48            android:layout_width="48dp"
49            android:layout_height="48dp"
50            android:layout_marginEnd="8dp"
51            android:layout_alignParentEnd="true"
52            android:background="@drawable/btn_borderless_rect"
53            android:clickable="true"
54            android:contentDescription="@string/accessibility_desc_close"
55            android:scaleType="center"
56            android:src="@drawable/ic_close"
57            android:tint="@android:color/white" />
58
59        <TextView
60            android:id="@+id/zen_introduction_message"
61            android:layout_width="match_parent"
62            android:layout_height="wrap_content"
63            android:layout_marginTop="12dp"
64            android:layout_marginStart="24dp"
65            android:textDirection="locale"
66            android:lineSpacingMultiplier="1.20029"
67            android:layout_toStartOf="@id/zen_introduction_confirm"
68            android:textAppearance="@style/TextAppearance.QS.Introduction" />
69
70        <TextView
71            android:id="@+id/zen_introduction_customize"
72            style="@style/QSBorderlessButton"
73            android:layout_width="wrap_content"
74            android:layout_height="wrap_content"
75            android:layout_alignParentEnd="true"
76            android:layout_marginEnd="12dp"
77            android:layout_below="@id/zen_introduction_message"
78            android:clickable="true"
79            android:focusable="true"
80            android:text="@string/zen_priority_customize_button"
81            android:textAppearance="@style/TextAppearance.QS.DetailButton.White" />
82
83        <View
84            android:layout_width="0dp"
85            android:layout_height="16dp"
86            android:layout_below="@id/zen_introduction_message"
87            android:layout_alignParentEnd="true" />
88
89    </RelativeLayout>
90
91    <LinearLayout
92        android:id="@+id/zen_conditions"
93        android:layout_width="match_parent"
94        android:layout_height="wrap_content"
95        android:layout_marginTop="8dp"
96        android:layout_marginEnd="4dp"
97        android:layout_marginStart="4dp"
98        android:paddingBottom="@dimen/zen_mode_condition_detail_bottom_padding"
99        android:orientation="horizontal" >
100            <RadioGroup
101                    android:id="@+id/zen_radio_buttons"
102                    android:layout_width="wrap_content"
103                    android:layout_height="wrap_content" />
104            <LinearLayout
105                    android:id="@+id/zen_radio_buttons_content"
106                    android:layout_width="fill_parent"
107                    android:layout_height="fill_parent"
108                    android:orientation="vertical"/>
109    </LinearLayout>
110
111    <TextView
112        android:id="@+id/zen_alarm_warning"
113        android:layout_width="match_parent"
114        android:layout_height="wrap_content"
115        android:layout_marginStart="18dp"
116        android:layout_marginEnd="16dp"
117        android:textDirection="locale"
118        android:lineSpacingMultiplier="1.20029"
119        android:textAppearance="@style/TextAppearance.QS.Warning" />
120
121</com.android.systemui.volume.ZenModePanel>
122