John Spurlock | f88d808 | 2015-03-25 18:09:51 -0400 | [diff] [blame] | 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" |
Julia Reynolds | 48242f0 | 2016-08-10 11:42:56 -0400 | [diff] [blame] | 21 | android:orientation="vertical" |
| 22 | android:paddingBottom="8dp" > <!-- extends LinearLayout --> |
John Spurlock | f88d808 | 2015-03-25 18:09:51 -0400 | [diff] [blame] | 23 | |
John Spurlock | d9c75db | 2015-04-28 11:19:13 -0400 | [diff] [blame] | 24 | <View |
| 25 | android:id="@+id/zen_embedded_divider" |
John Spurlock | f88d808 | 2015-03-25 18:09:51 -0400 | [diff] [blame] | 26 | android:layout_width="match_parent" |
John Spurlock | d9c75db | 2015-04-28 11:19:13 -0400 | [diff] [blame] | 27 | android:layout_height="1dp" |
John Spurlock | d9c75db | 2015-04-28 11:19:13 -0400 | [diff] [blame] | 28 | android:layout_marginTop="8dp" |
John Spurlock | f748c4d | 2015-05-13 16:31:34 -0400 | [diff] [blame] | 29 | android:background="@color/qs_tile_divider" /> |
John Spurlock | d9c75db | 2015-04-28 11:19:13 -0400 | [diff] [blame] | 30 | |
Julia Reynolds | d7a00aa | 2017-02-16 15:01:36 -0500 | [diff] [blame] | 31 | <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 Reynolds | d7a00aa | 2017-02-16 15:01:36 -0500 | [diff] [blame] | 37 | 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 Laird | ed57d21 | 2017-08-08 16:04:27 -0400 | [diff] [blame] | 51 | android:src="@drawable/ic_close_white_rounded" /> |
Julia Reynolds | d7a00aa | 2017-02-16 15:01:36 -0500 | [diff] [blame] | 52 | |
| 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 Spurlock | d9c75db | 2015-04-28 11:19:13 -0400 | [diff] [blame] | 74 | <LinearLayout |
| 75 | android:layout_width="match_parent" |
| 76 | android:layout_height="wrap_content" |
| 77 | android:gravity="center_vertical" |
Julia Reynolds | c791e05 | 2016-02-19 16:02:01 -0500 | [diff] [blame] | 78 | android:orientation="horizontal" > |
John Spurlock | f88d808 | 2015-03-25 18:09:51 -0400 | [diff] [blame] | 79 | |
| 80 | <ImageView |
John Spurlock | d9c75db | 2015-04-28 11:19:13 -0400 | [diff] [blame] | 81 | android:id="@+id/volume_zen_icon" |
John Spurlock | f88d808 | 2015-03-25 18:09:51 -0400 | [diff] [blame] | 82 | android:layout_width="@dimen/volume_button_size" |
| 83 | android:layout_height="@dimen/volume_button_size" |
John Spurlock | d9c75db | 2015-04-28 11:19:13 -0400 | [diff] [blame] | 84 | android:layout_marginEnd="7dp" |
John Spurlock | 4ec8b60 | 2015-05-11 17:46:28 -0400 | [diff] [blame] | 85 | android:scaleType="center" /> |
John Spurlock | f88d808 | 2015-03-25 18:09:51 -0400 | [diff] [blame] | 86 | |
John Spurlock | d9c75db | 2015-04-28 11:19:13 -0400 | [diff] [blame] | 87 | <LinearLayout |
John Spurlock | f88d808 | 2015-03-25 18:09:51 -0400 | [diff] [blame] | 88 | android:layout_width="0dp" |
John Spurlock | d9c75db | 2015-04-28 11:19:13 -0400 | [diff] [blame] | 89 | android:layout_height="wrap_content" |
John Spurlock | f88d808 | 2015-03-25 18:09:51 -0400 | [diff] [blame] | 90 | android:layout_weight="1" |
John Spurlock | d9c75db | 2015-04-28 11:19:13 -0400 | [diff] [blame] | 91 | android:orientation="vertical" > |
John Spurlock | f88d808 | 2015-03-25 18:09:51 -0400 | [diff] [blame] | 92 | |
John Spurlock | d9c75db | 2015-04-28 11:19:13 -0400 | [diff] [blame] | 93 | <TextView |
| 94 | android:id="@+id/volume_zen_summary_line_1" |
| 95 | android:layout_width="match_parent" |
| 96 | android:layout_height="wrap_content" |
John Spurlock | 023544f | 2015-06-02 17:52:46 -0400 | [diff] [blame] | 97 | android:textDirection="locale" |
John Spurlock | d9c75db | 2015-04-28 11:19:13 -0400 | [diff] [blame] | 98 | android:textAppearance="@style/TextAppearance.Volume.ZenSummary" /> |
John Spurlock | f55b7f2 | 2015-04-13 19:21:26 -0400 | [diff] [blame] | 99 | |
John Spurlock | d9c75db | 2015-04-28 11:19:13 -0400 | [diff] [blame] | 100 | <TextView |
| 101 | android:id="@+id/volume_zen_summary_line_2" |
| 102 | android:layout_width="match_parent" |
| 103 | android:layout_height="wrap_content" |
John Spurlock | 023544f | 2015-06-02 17:52:46 -0400 | [diff] [blame] | 104 | android:layout_marginTop="1dp" |
| 105 | android:textDirection="locale" |
John Spurlock | d9c75db | 2015-04-28 11:19:13 -0400 | [diff] [blame] | 106 | android:textAppearance="@style/TextAppearance.Volume.ZenDetail" /> |
John Spurlock | 023544f | 2015-06-02 17:52:46 -0400 | [diff] [blame] | 107 | |
John Spurlock | d9c75db | 2015-04-28 11:19:13 -0400 | [diff] [blame] | 108 | </LinearLayout> |
John Spurlock | f88d808 | 2015-03-25 18:09:51 -0400 | [diff] [blame] | 109 | |
John Spurlock | f88d808 | 2015-03-25 18:09:51 -0400 | [diff] [blame] | 110 | </LinearLayout> |
| 111 | |
John Spurlock | 023544f | 2015-06-02 17:52:46 -0400 | [diff] [blame] | 112 | <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 Sapperstein | 5c37344 | 2016-06-12 13:17:16 -0700 | [diff] [blame] | 124 | android:textColor="?android:attr/colorAccent" |
John Spurlock | 023544f | 2015-06-02 17:52:46 -0400 | [diff] [blame] | 125 | android:textAppearance="@style/TextAppearance.QS.DetailButton" /> |
| 126 | |
Julia Reynolds | d518135 | 2017-07-21 11:15:52 -0400 | [diff] [blame] | 127 | </com.android.systemui.volume.ZenFooter> |