1<!-- 2 Copyright (C) 2015 The Android Open Source Project 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15--> 16<com.android.systemui.volume.ZenFooter xmlns:android="http://schemas.android.com/apk/res/android" 17 xmlns:tools="http://schemas.android.com/tools" 18 android:id="@+id/volume_zen_footer" 19 android:layout_width="match_parent" 20 android:layout_height="wrap_content" 21 android:orientation="vertical" 22 android:paddingBottom="8dp" > <!-- extends LinearLayout --> 23 24 <View 25 android:id="@+id/zen_embedded_divider" 26 android:layout_width="match_parent" 27 android:layout_height="1dp" 28 android:layout_marginBottom="12dp" 29 android:layout_marginTop="8dp" 30 android:background="@color/qs_tile_divider" /> 31 32 33 <RelativeLayout 34 android:id="@+id/zen_introduction" 35 android:layout_width="match_parent" 36 android:layout_height="wrap_content" 37 android:layout_marginStart="16dp" 38 android:layout_marginEnd="16dp" 39 android:paddingTop="8dp" 40 android:paddingBottom="8dp" 41 android:background="@drawable/zen_introduction_message_background" 42 android:theme="@*android:style/ThemeOverlay.DeviceDefault.Accent.Light"> 43 44 <ImageView 45 android:id="@+id/zen_introduction_confirm" 46 android:layout_width="48dp" 47 android:layout_height="48dp" 48 android:layout_marginEnd="8dp" 49 android:layout_alignParentEnd="true" 50 android:background="@drawable/btn_borderless_rect" 51 android:clickable="true" 52 android:contentDescription="@string/accessibility_desc_close" 53 android:scaleType="center" 54 android:src="@drawable/ic_close" 55 android:tint="@android:color/white" /> 56 57 <TextView 58 android:id="@+id/zen_introduction_message" 59 android:layout_width="match_parent" 60 android:layout_height="wrap_content" 61 android:layout_marginTop="12dp" 62 android:layout_marginStart="24dp" 63 android:textDirection="locale" 64 android:lineSpacingMultiplier="1.20029" 65 android:layout_toStartOf="@id/zen_introduction_confirm" 66 android:text="@string/zen_alarms_introduction" 67 android:textAppearance="@style/TextAppearance.QS.Introduction" /> 68 69 <View 70 android:layout_width="0dp" 71 android:layout_height="16dp" 72 android:layout_below="@id/zen_introduction_message" 73 android:layout_alignParentEnd="true" /> 74 75 </RelativeLayout> 76 77 78 <LinearLayout 79 android:layout_width="match_parent" 80 android:layout_height="wrap_content" 81 android:gravity="center_vertical" 82 android:orientation="horizontal" > 83 84 <ImageView 85 android:id="@+id/volume_zen_icon" 86 android:layout_width="@dimen/volume_button_size" 87 android:layout_height="@dimen/volume_button_size" 88 android:layout_marginEnd="7dp" 89 android:scaleType="center" /> 90 91 <LinearLayout 92 android:layout_width="0dp" 93 android:layout_height="wrap_content" 94 android:layout_weight="1" 95 android:orientation="vertical" > 96 97 <TextView 98 android:id="@+id/volume_zen_summary_line_1" 99 android:layout_width="match_parent" 100 android:layout_height="wrap_content" 101 android:textDirection="locale" 102 android:textAppearance="@style/TextAppearance.Volume.ZenSummary" /> 103 104 <TextView 105 android:id="@+id/volume_zen_summary_line_2" 106 android:layout_width="match_parent" 107 android:layout_height="wrap_content" 108 android:layout_marginTop="1dp" 109 android:textDirection="locale" 110 android:textAppearance="@style/TextAppearance.Volume.ZenDetail" /> 111 112 </LinearLayout> 113 114 </LinearLayout> 115 116 <TextView 117 android:id="@+id/volume_zen_end_now" 118 style="@style/QSBorderlessButton" 119 android:layout_width="wrap_content" 120 android:layout_height="wrap_content" 121 android:layout_gravity="end" 122 android:layout_marginEnd="8dp" 123 android:clickable="true" 124 android:focusable="true" 125 android:paddingStart="15dp" 126 android:paddingEnd="15dp" 127 android:text="@string/volume_zen_end_now" 128 android:textColor="?android:attr/colorAccent" 129 android:textAppearance="@style/TextAppearance.QS.DetailButton" /> 130 131</com.android.systemui.volume.ZenFooter>