• 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
45        <ImageView
46            android:id="@+id/zen_introduction_confirm"
47            android:layout_width="48dp"
48            android:layout_height="48dp"
49            android:layout_marginEnd="8dp"
50            android:layout_alignParentEnd="true"
51            android:background="@drawable/btn_borderless_rect"
52            android:clickable="true"
53            android:contentDescription="@string/accessibility_desc_close"
54            android:scaleType="center"
55            android:src="@drawable/ic_close"
56            android:tint="@android:color/white" />
57
58        <TextView
59            android:id="@+id/zen_introduction_message"
60            android:layout_width="match_parent"
61            android:layout_height="wrap_content"
62            android:layout_marginTop="12dp"
63            android:layout_marginStart="24dp"
64            android:textDirection="locale"
65            android:lineSpacingMultiplier="1.20029"
66            android:layout_toStartOf="@id/zen_introduction_confirm"
67            android:textAppearance="@style/TextAppearance.QS.Introduction" />
68
69        <TextView
70            android:id="@+id/zen_introduction_customize"
71            style="@style/QSBorderlessButton"
72            android:layout_width="wrap_content"
73            android:layout_height="wrap_content"
74            android:layout_alignParentEnd="true"
75            android:layout_marginEnd="12dp"
76            android:layout_below="@id/zen_introduction_message"
77            android:clickable="true"
78            android:focusable="true"
79            android:text="@string/zen_priority_customize_button"
80            android:textAppearance="@style/TextAppearance.QS.DetailButton.White" />
81
82        <View
83            android:layout_width="0dp"
84            android:layout_height="16dp"
85            android:layout_below="@id/zen_introduction_message"
86            android:layout_alignParentEnd="true" />
87
88    </RelativeLayout>
89
90    <LinearLayout
91        android:id="@+id/zen_conditions"
92        android:layout_width="match_parent"
93        android:layout_height="wrap_content"
94        android:layout_marginTop="8dp"
95        android:layout_marginEnd="4dp"
96        android:layout_marginStart="4dp"
97        android:orientation="vertical"
98        android:paddingBottom="@dimen/zen_mode_condition_detail_bottom_padding" />
99
100
101    <TextView
102        android:id="@+id/zen_alarm_warning"
103        android:layout_width="match_parent"
104        android:layout_height="wrap_content"
105        android:layout_marginStart="18dp"
106        android:layout_marginEnd="16dp"
107        android:textDirection="locale"
108        android:lineSpacingMultiplier="1.20029"
109        android:textAppearance="@style/TextAppearance.QS.Warning" />
110
111</com.android.systemui.volume.ZenModePanel>
112