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 <FrameLayout 26 android:id="@+id/zen_buttons_container" 27 android:layout_width="match_parent" 28 android:layout_height="wrap_content" 29 android:minHeight="8dp" 30 android:elevation="4dp" 31 android:background="@drawable/qs_background_secondary" > 32 33 <com.android.systemui.volume.SegmentedButtons 34 android:id="@+id/zen_buttons" 35 android:layout_width="match_parent" 36 android:layout_height="wrap_content" 37 android:layout_marginLeft="8dp" 38 android:layout_marginRight="8dp" 39 android:layout_marginBottom="8dp" 40 android:clipChildren="false" /> 41 </FrameLayout> 42 43 <RelativeLayout 44 android:id="@+id/zen_subhead" 45 android:layout_width="match_parent" 46 android:layout_height="62dp" 47 android:gravity="center_vertical" 48 android:paddingLeft="8dp" 49 android:paddingRight="8dp" > 50 51 <TextView 52 android:id="@+id/zen_subhead_collapsed" 53 android:layout_width="wrap_content" 54 android:layout_height="48dp" 55 android:layout_gravity="center_vertical" 56 android:gravity="center_vertical" 57 android:paddingLeft="8dp" 58 android:paddingRight="4dp" 59 android:background="@drawable/btn_borderless_rect" 60 android:clickable="true" 61 android:drawableEnd="@drawable/qs_subhead_caret" 62 android:maxLines="2" 63 android:ellipsize="end" 64 android:textAppearance="@style/TextAppearance.QS.Subhead" /> 65 66 <TextView 67 android:id="@+id/zen_subhead_expanded" 68 android:layout_width="wrap_content" 69 android:layout_height="48dp" 70 android:layout_gravity="center_vertical" 71 android:gravity="center_vertical" 72 android:paddingLeft="8dp" 73 android:maxLines="2" 74 android:ellipsize="end" 75 android:textAppearance="@style/TextAppearance.QS.Subhead" /> 76 77 <ImageView 78 android:id="@+id/zen_more_settings" 79 android:layout_width="48dp" 80 android:layout_height="48dp" 81 android:layout_alignParentEnd="true" 82 android:background="@drawable/btn_borderless_rect" 83 android:clickable="true" 84 android:contentDescription="@string/accessibility_desc_settings" 85 android:scaleType="center" 86 android:src="@drawable/ic_settings" /> 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:orientation="vertical" 95 android:paddingBottom="@dimen/zen_mode_condition_detail_bottom_padding" /> 96 97</com.android.systemui.volume.ZenModePanel> 98