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="match_parent" 22 android:clipChildren="false" > 23 24 <LinearLayout 25 android:id="@+id/edit_container" 26 android:layout_width="match_parent" 27 android:layout_height="match_parent" 28 android:background="?android:attr/colorPrimary" 29 android:clipChildren="false" 30 android:orientation="vertical"> 31 32 <com.android.systemui.volume.SegmentedButtons 33 android:id="@+id/zen_buttons" 34 android:background="@drawable/segmented_buttons_background" 35 android:layout_width="match_parent" 36 android:layout_height="wrap_content" 37 android:layout_marginStart="16dp" 38 android:layout_marginEnd="16dp" 39 android:layout_marginBottom="8dp" /> 40 41 <RelativeLayout 42 android:id="@+id/zen_introduction" 43 android:layout_width="match_parent" 44 android:layout_height="wrap_content" 45 android:layout_marginStart="16dp" 46 android:layout_marginEnd="16dp" 47 android:paddingTop="8dp" 48 android:paddingBottom="8dp" 49 android:background="@drawable/zen_introduction_message_background" 50 android:theme="@*android:style/ThemeOverlay.DeviceDefault.Accent.Light"> 51 52 <ImageView 53 android:id="@+id/zen_introduction_confirm" 54 android:layout_width="48dp" 55 android:layout_height="48dp" 56 android:layout_marginEnd="8dp" 57 android:layout_alignParentEnd="true" 58 android:background="@drawable/btn_borderless_rect" 59 android:clickable="true" 60 android:contentDescription="@string/accessibility_desc_close" 61 android:scaleType="center" 62 android:src="@drawable/ic_close" 63 android:tint="@android:color/white" /> 64 65 <TextView 66 android:id="@+id/zen_introduction_message" 67 android:layout_width="match_parent" 68 android:layout_height="wrap_content" 69 android:layout_marginTop="12dp" 70 android:layout_marginStart="24dp" 71 android:textDirection="locale" 72 android:lineSpacingMultiplier="1.20029" 73 android:layout_toStartOf="@id/zen_introduction_confirm" 74 android:textAppearance="@style/TextAppearance.QS.Introduction" /> 75 76 <TextView 77 android:id="@+id/zen_introduction_customize" 78 style="@style/QSBorderlessButton" 79 android:layout_width="wrap_content" 80 android:layout_height="wrap_content" 81 android:layout_alignParentEnd="true" 82 android:layout_marginEnd="12dp" 83 android:layout_below="@id/zen_introduction_message" 84 android:clickable="true" 85 android:focusable="true" 86 android:text="@string/zen_priority_customize_button" 87 android:textAppearance="@style/TextAppearance.QS.DetailButton.White" /> 88 89 <View 90 android:layout_width="0dp" 91 android:layout_height="16dp" 92 android:layout_below="@id/zen_introduction_message" 93 android:layout_alignParentEnd="true" /> 94 95 </RelativeLayout> 96 97 <LinearLayout 98 android:id="@+id/zen_conditions" 99 android:layout_width="match_parent" 100 android:layout_height="wrap_content" 101 android:layout_marginTop="8dp" 102 android:layout_marginEnd="4dp" 103 android:layout_marginStart="4dp" 104 android:paddingBottom="@dimen/zen_mode_condition_detail_bottom_padding" 105 android:orientation="horizontal" > 106 <RadioGroup 107 android:id="@+id/zen_radio_buttons" 108 android:layout_width="wrap_content" 109 android:layout_height="wrap_content" /> 110 <LinearLayout 111 android:id="@+id/zen_radio_buttons_content" 112 android:layout_width="fill_parent" 113 android:layout_height="fill_parent" 114 android:orientation="vertical"/> 115 </LinearLayout> 116 117 <TextView 118 android:id="@+id/zen_alarm_warning" 119 android:layout_width="match_parent" 120 android:layout_height="wrap_content" 121 android:layout_marginStart="18dp" 122 android:layout_marginEnd="16dp" 123 android:textDirection="locale" 124 android:lineSpacingMultiplier="1.20029" 125 android:textAppearance="@style/TextAppearance.QS.Warning" /> 126 </LinearLayout> 127 128 <LinearLayout 129 android:id="@android:id/empty" 130 android:layout_width="match_parent" 131 android:layout_height="match_parent" 132 android:layout_gravity="center" 133 android:background="?android:attr/colorPrimary" 134 android:gravity="center" 135 android:orientation="vertical"> 136 137 <ImageView 138 android:id="@android:id/icon" 139 android:layout_width="56dp" 140 android:layout_height="56dp" 141 android:alpha="?android:attr/disabledAlpha" 142 android:tint="?android:attr/colorForeground" /> 143 144 <TextView 145 android:id="@android:id/title" 146 android:layout_width="wrap_content" 147 android:layout_height="wrap_content" 148 android:layout_marginTop="20dp" 149 android:textAppearance="@style/TextAppearance.QS.DetailEmpty"/> 150 </LinearLayout> 151 152 <LinearLayout 153 android:id="@+id/auto_rule" 154 android:layout_width="match_parent" 155 android:layout_height="match_parent" 156 android:background="?android:attr/colorPrimary" 157 android:layout_marginStart="16dp" 158 android:layout_marginEnd="16dp" 159 android:layout_marginTop="16dp" 160 android:layout_marginBottom="8dp" 161 android:orientation="vertical"> 162 163 <TextView 164 android:id="@android:id/title" 165 android:layout_width="match_parent" 166 android:layout_height="wrap_content" 167 android:textAppearance="@style/TextAppearance.QS.DetailItemPrimary"/> 168 169 </LinearLayout> 170 171</com.android.systemui.volume.ZenModePanel> 172