blob: df79c5ff5ba4706aac896daab006f4ee374b0624 [file] [log] [blame]
John Spurlockf88d8082015-03-25 18:09:51 -04001<!--
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"
Julia Reynolds48242f02016-08-10 11:42:56 -040021 android:orientation="vertical"
22 android:paddingBottom="8dp" > <!-- extends LinearLayout -->
John Spurlockf88d8082015-03-25 18:09:51 -040023
John Spurlockd9c75db2015-04-28 11:19:13 -040024 <View
25 android:id="@+id/zen_embedded_divider"
John Spurlockf88d8082015-03-25 18:09:51 -040026 android:layout_width="match_parent"
John Spurlockd9c75db2015-04-28 11:19:13 -040027 android:layout_height="1dp"
John Spurlockd9c75db2015-04-28 11:19:13 -040028 android:layout_marginTop="8dp"
John Spurlockf748c4d2015-05-13 16:31:34 -040029 android:background="@color/qs_tile_divider" />
John Spurlockd9c75db2015-04-28 11:19:13 -040030
Julia Reynoldsd7a00aa2017-02-16 15:01:36 -050031 <RelativeLayout
32 android:id="@+id/zen_introduction"
33 android:layout_width="match_parent"
34 android:layout_height="wrap_content"
35 android:layout_marginStart="16dp"
36 android:layout_marginEnd="16dp"
Julia Reynoldsd7a00aa2017-02-16 15:01:36 -050037 android:paddingBottom="8dp"
38 android:background="@drawable/zen_introduction_message_background"
39 android:theme="@*android:style/ThemeOverlay.DeviceDefault.Accent.Light">
40
41 <ImageView
42 android:id="@+id/zen_introduction_confirm"
43 android:layout_width="48dp"
44 android:layout_height="48dp"
45 android:layout_marginEnd="8dp"
46 android:layout_alignParentEnd="true"
47 android:background="@drawable/btn_borderless_rect"
48 android:clickable="true"
49 android:contentDescription="@string/accessibility_desc_close"
50 android:scaleType="center"
Evan Lairded57d212017-08-08 16:04:27 -040051 android:src="@drawable/ic_close_white_rounded" />
Julia Reynoldsd7a00aa2017-02-16 15:01:36 -050052
53 <TextView
54 android:id="@+id/zen_introduction_message"
55 android:layout_width="match_parent"
56 android:layout_height="wrap_content"
57 android:layout_marginTop="12dp"
58 android:layout_marginStart="24dp"
59 android:textDirection="locale"
60 android:lineSpacingMultiplier="1.20029"
61 android:layout_toStartOf="@id/zen_introduction_confirm"
62 android:text="@string/zen_alarms_introduction"
63 android:textAppearance="@style/TextAppearance.QS.Introduction" />
64
65 <View
66 android:layout_width="0dp"
67 android:layout_height="16dp"
68 android:layout_below="@id/zen_introduction_message"
69 android:layout_alignParentEnd="true" />
70
71 </RelativeLayout>
72
73
John Spurlockd9c75db2015-04-28 11:19:13 -040074 <LinearLayout
75 android:layout_width="match_parent"
76 android:layout_height="wrap_content"
77 android:gravity="center_vertical"
Julia Reynoldsc791e052016-02-19 16:02:01 -050078 android:orientation="horizontal" >
John Spurlockf88d8082015-03-25 18:09:51 -040079
80 <ImageView
John Spurlockd9c75db2015-04-28 11:19:13 -040081 android:id="@+id/volume_zen_icon"
John Spurlockf88d8082015-03-25 18:09:51 -040082 android:layout_width="@dimen/volume_button_size"
83 android:layout_height="@dimen/volume_button_size"
John Spurlockd9c75db2015-04-28 11:19:13 -040084 android:layout_marginEnd="7dp"
John Spurlock4ec8b602015-05-11 17:46:28 -040085 android:scaleType="center" />
John Spurlockf88d8082015-03-25 18:09:51 -040086
John Spurlockd9c75db2015-04-28 11:19:13 -040087 <LinearLayout
John Spurlockf88d8082015-03-25 18:09:51 -040088 android:layout_width="0dp"
John Spurlockd9c75db2015-04-28 11:19:13 -040089 android:layout_height="wrap_content"
John Spurlockf88d8082015-03-25 18:09:51 -040090 android:layout_weight="1"
John Spurlockd9c75db2015-04-28 11:19:13 -040091 android:orientation="vertical" >
John Spurlockf88d8082015-03-25 18:09:51 -040092
John Spurlockd9c75db2015-04-28 11:19:13 -040093 <TextView
94 android:id="@+id/volume_zen_summary_line_1"
95 android:layout_width="match_parent"
96 android:layout_height="wrap_content"
John Spurlock023544f2015-06-02 17:52:46 -040097 android:textDirection="locale"
John Spurlockd9c75db2015-04-28 11:19:13 -040098 android:textAppearance="@style/TextAppearance.Volume.ZenSummary" />
John Spurlockf55b7f22015-04-13 19:21:26 -040099
John Spurlockd9c75db2015-04-28 11:19:13 -0400100 <TextView
101 android:id="@+id/volume_zen_summary_line_2"
102 android:layout_width="match_parent"
103 android:layout_height="wrap_content"
John Spurlock023544f2015-06-02 17:52:46 -0400104 android:layout_marginTop="1dp"
105 android:textDirection="locale"
John Spurlockd9c75db2015-04-28 11:19:13 -0400106 android:textAppearance="@style/TextAppearance.Volume.ZenDetail" />
John Spurlock023544f2015-06-02 17:52:46 -0400107
John Spurlockd9c75db2015-04-28 11:19:13 -0400108 </LinearLayout>
John Spurlockf88d8082015-03-25 18:09:51 -0400109
John Spurlockf88d8082015-03-25 18:09:51 -0400110 </LinearLayout>
111
John Spurlock023544f2015-06-02 17:52:46 -0400112 <TextView
113 android:id="@+id/volume_zen_end_now"
114 style="@style/QSBorderlessButton"
115 android:layout_width="wrap_content"
116 android:layout_height="wrap_content"
117 android:layout_gravity="end"
118 android:layout_marginEnd="8dp"
119 android:clickable="true"
120 android:focusable="true"
121 android:paddingStart="15dp"
122 android:paddingEnd="15dp"
123 android:text="@string/volume_zen_end_now"
Andrew Sapperstein5c373442016-06-12 13:17:16 -0700124 android:textColor="?android:attr/colorAccent"
John Spurlock023544f2015-06-02 17:52:46 -0400125 android:textAppearance="@style/TextAppearance.QS.DetailButton" />
126
Julia Reynoldsd5181352017-07-21 11:15:52 -0400127</com.android.systemui.volume.ZenFooter>