Julia Reynolds | b37d565 | 2019-12-12 08:12:29 -0500 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2020 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 | |
Julia Reynolds | ecb66ce | 2020-04-10 15:34:19 -0400 | [diff] [blame] | 17 | <androidx.core.widget.NestedScrollView |
Julia Reynolds | b37d565 | 2019-12-12 08:12:29 -0500 | [diff] [blame] | 18 | xmlns:android="http://schemas.android.com/apk/res/android" |
Julia Reynolds | b37d565 | 2019-12-12 08:12:29 -0500 | [diff] [blame] | 19 | android:id="@+id/scroll" |
| 20 | android:layout_width="match_parent" |
Julia Reynolds | 2eb9ef4 | 2020-02-13 17:11:27 -0500 | [diff] [blame] | 21 | android:layout_height="match_parent"> |
Julia Reynolds | 24aac21 | 2020-02-10 17:24:50 -0500 | [diff] [blame] | 22 | |
Julia Reynolds | b37d565 | 2019-12-12 08:12:29 -0500 | [diff] [blame] | 23 | <LinearLayout |
| 24 | android:layout_width="match_parent" |
| 25 | android:layout_height="wrap_content" |
| 26 | android:orientation="vertical"> |
| 27 | |
Julia Reynolds | 24aac21 | 2020-02-10 17:24:50 -0500 | [diff] [blame] | 28 | <include layout="@layout/styled_switch_bar"/> |
| 29 | |
Julia Reynolds | b37d565 | 2019-12-12 08:12:29 -0500 | [diff] [blame] | 30 | <LinearLayout |
Julia Reynolds | 24aac21 | 2020-02-10 17:24:50 -0500 | [diff] [blame] | 31 | android:id="@+id/history_off" |
| 32 | android:visibility="gone" |
| 33 | android:layout_width="match_parent" |
| 34 | android:layout_height="wrap_content" |
| 35 | android:layout_marginTop="164dp" |
| 36 | android:orientation="vertical"> |
| 37 | |
| 38 | <ImageView |
| 39 | android:id="@+id/history_image" |
| 40 | android:layout_width="67dp" |
| 41 | android:layout_height="67dp" |
| 42 | android:layout_gravity="center_horizontal" |
Julia Reynolds | 24aac21 | 2020-02-10 17:24:50 -0500 | [diff] [blame] | 43 | android:scaleType="fitCenter" |
Julia Reynolds | cfb1f98 | 2020-03-30 11:54:21 -0400 | [diff] [blame] | 44 | android:focusable="false" |
Julia Reynolds | 24aac21 | 2020-02-10 17:24:50 -0500 | [diff] [blame] | 45 | android:tint="?android:attr/colorControlNormal" |
| 46 | android:src="@drawable/ic_history" /> |
| 47 | |
| 48 | <TextView |
| 49 | android:id="@+id/history_off_title" |
| 50 | android:layout_width="wrap_content" |
| 51 | android:layout_height="wrap_content" |
Julia Reynolds | 24aac21 | 2020-02-10 17:24:50 -0500 | [diff] [blame] | 52 | android:layout_marginTop="48dp" |
| 53 | android:layout_marginStart="48dp" |
| 54 | android:layout_marginEnd="48dp" |
| 55 | android:layout_gravity="center_horizontal" |
Julia Reynolds | 815ee67 | 2020-04-30 13:05:04 -0400 | [diff] [blame^] | 56 | android:gravity="center" |
Julia Reynolds | cfb1f98 | 2020-03-30 11:54:21 -0400 | [diff] [blame] | 57 | android:focusable="true" |
Julia Reynolds | 24aac21 | 2020-02-10 17:24:50 -0500 | [diff] [blame] | 58 | android:textAppearance="?android:attr/textAppearanceMedium" |
| 59 | android:text="@string/notification_history_off_title_extended" /> |
| 60 | |
| 61 | <TextView |
| 62 | android:id="@+id/history_off_summary" |
| 63 | android:layout_width="wrap_content" |
| 64 | android:layout_height="wrap_content" |
Julia Reynolds | 24aac21 | 2020-02-10 17:24:50 -0500 | [diff] [blame] | 65 | android:layout_marginStart="48dp" |
| 66 | android:layout_marginEnd="48dp" |
| 67 | android:layout_marginTop="16dp" |
| 68 | android:layout_gravity="center_horizontal" |
| 69 | android:textAlignment="center" |
Julia Reynolds | cfb1f98 | 2020-03-30 11:54:21 -0400 | [diff] [blame] | 70 | android:focusable="true" |
Julia Reynolds | 24aac21 | 2020-02-10 17:24:50 -0500 | [diff] [blame] | 71 | android:textAppearance="?android:attr/textAppearanceSmall" |
Julia Reynolds | 8222a9a | 2020-03-24 09:25:58 -0400 | [diff] [blame] | 72 | android:text="@string/notification_history_off_summary" /> |
Julia Reynolds | c7a77f6 | 2020-04-03 16:56:01 -0400 | [diff] [blame] | 73 | |
Julia Reynolds | 1845421 | 2020-04-13 18:13:29 -0400 | [diff] [blame] | 74 | </LinearLayout> |
| 75 | |
| 76 | <LinearLayout |
| 77 | android:id="@+id/history_on_empty" |
| 78 | android:visibility="gone" |
| 79 | android:layout_width="match_parent" |
| 80 | android:layout_height="wrap_content" |
| 81 | android:layout_marginTop="164dp" |
| 82 | android:orientation="vertical"> |
| 83 | <ImageView |
| 84 | android:id="@+id/history_image_on" |
| 85 | android:layout_width="67dp" |
| 86 | android:layout_height="67dp" |
| 87 | android:layout_gravity="center_horizontal" |
| 88 | android:scaleType="fitCenter" |
| 89 | android:focusable="false" |
| 90 | android:tint="?android:attr/colorControlNormal" |
| 91 | android:src="@drawable/ic_history" /> |
Julia Reynolds | c7a77f6 | 2020-04-03 16:56:01 -0400 | [diff] [blame] | 92 | <TextView |
| 93 | android:id="@+id/history_toggled_on_title" |
| 94 | android:layout_width="wrap_content" |
| 95 | android:layout_height="wrap_content" |
Julia Reynolds | c7a77f6 | 2020-04-03 16:56:01 -0400 | [diff] [blame] | 96 | android:layout_marginTop="48dp" |
| 97 | android:layout_marginStart="48dp" |
| 98 | android:layout_marginEnd="48dp" |
| 99 | android:layout_gravity="center_horizontal" |
Julia Reynolds | 815ee67 | 2020-04-30 13:05:04 -0400 | [diff] [blame^] | 100 | android:gravity="center" |
Julia Reynolds | c7a77f6 | 2020-04-03 16:56:01 -0400 | [diff] [blame] | 101 | android:focusable="true" |
Julia Reynolds | c7a77f6 | 2020-04-03 16:56:01 -0400 | [diff] [blame] | 102 | android:textAppearance="?android:attr/textAppearanceMedium" |
| 103 | android:text="@string/history_toggled_on_title" /> |
| 104 | |
| 105 | <TextView |
| 106 | android:id="@+id/history_toggled_on_summary" |
| 107 | android:layout_width="wrap_content" |
| 108 | android:layout_height="wrap_content" |
| 109 | android:layout_below="@+id/history_off_title" |
| 110 | android:layout_marginStart="48dp" |
| 111 | android:layout_marginEnd="48dp" |
| 112 | android:layout_marginTop="16dp" |
| 113 | android:layout_gravity="center_horizontal" |
| 114 | android:textAlignment="center" |
| 115 | android:focusable="true" |
Julia Reynolds | c7a77f6 | 2020-04-03 16:56:01 -0400 | [diff] [blame] | 116 | android:textAppearance="?android:attr/textAppearanceSmall" |
| 117 | android:text="@string/history_toggled_on_summary" /> |
Julia Reynolds | 24aac21 | 2020-02-10 17:24:50 -0500 | [diff] [blame] | 118 | </LinearLayout> |
| 119 | |
| 120 | <LinearLayout |
| 121 | android:id="@+id/history_on" |
| 122 | android:visibility="gone" |
Julia Reynolds | b37d565 | 2019-12-12 08:12:29 -0500 | [diff] [blame] | 123 | android:layout_width="match_parent" |
| 124 | android:layout_height="wrap_content" |
| 125 | android:orientation="vertical" |
Julia Reynolds | 24aac21 | 2020-02-10 17:24:50 -0500 | [diff] [blame] | 126 | android:padding="16dp"> |
| 127 | |
Julia Reynolds | b37d565 | 2019-12-12 08:12:29 -0500 | [diff] [blame] | 128 | <LinearLayout |
Julia Reynolds | 24aac21 | 2020-02-10 17:24:50 -0500 | [diff] [blame] | 129 | android:id="@+id/snoozed_list" |
Julia Reynolds | b37d565 | 2019-12-12 08:12:29 -0500 | [diff] [blame] | 130 | android:layout_width="match_parent" |
Julia Reynolds | 24aac21 | 2020-02-10 17:24:50 -0500 | [diff] [blame] | 131 | android:layout_height="wrap_content" |
| 132 | android:orientation="vertical" |
| 133 | android:layout_marginBottom="28dp"> |
Julia Reynolds | b37d565 | 2019-12-12 08:12:29 -0500 | [diff] [blame] | 134 | <TextView |
| 135 | android:layout_height="wrap_content" |
| 136 | android:layout_width="wrap_content" |
| 137 | android:text="@string/notification_history_snooze" |
| 138 | android:textColor="?android:attr/textColorPrimary" |
Julia Reynolds | 24aac21 | 2020-02-10 17:24:50 -0500 | [diff] [blame] | 139 | android:textAppearance="?android:attr/textAppearanceMedium" |
| 140 | android:paddingBottom="16dp" /> |
Julia Reynolds | b37d565 | 2019-12-12 08:12:29 -0500 | [diff] [blame] | 141 | |
Julia Reynolds | 24aac21 | 2020-02-10 17:24:50 -0500 | [diff] [blame] | 142 | <androidx.recyclerview.widget.RecyclerView |
| 143 | android:id="@+id/notification_list" |
Julia Reynolds | ecb66ce | 2020-04-10 15:34:19 -0400 | [diff] [blame] | 144 | android:elevation="3dp" |
| 145 | android:background="@drawable/rounded_bg" |
Julia Reynolds | 24aac21 | 2020-02-10 17:24:50 -0500 | [diff] [blame] | 146 | android:layout_width="match_parent" |
Julia Reynolds | 2eb9ef4 | 2020-02-13 17:11:27 -0500 | [diff] [blame] | 147 | android:layout_height="wrap_content" |
Julia Reynolds | 24aac21 | 2020-02-10 17:24:50 -0500 | [diff] [blame] | 148 | android:clipChildren="true" |
Julia Reynolds | cfb1f98 | 2020-03-30 11:54:21 -0400 | [diff] [blame] | 149 | android:scrollbars="none"/> |
Julia Reynolds | 24aac21 | 2020-02-10 17:24:50 -0500 | [diff] [blame] | 150 | </LinearLayout> |
| 151 | |
Julia Reynolds | b37d565 | 2019-12-12 08:12:29 -0500 | [diff] [blame] | 152 | <LinearLayout |
Julia Reynolds | 24aac21 | 2020-02-10 17:24:50 -0500 | [diff] [blame] | 153 | android:id="@+id/recently_dismissed_list" |
Julia Reynolds | b37d565 | 2019-12-12 08:12:29 -0500 | [diff] [blame] | 154 | android:layout_width="match_parent" |
Julia Reynolds | 24aac21 | 2020-02-10 17:24:50 -0500 | [diff] [blame] | 155 | android:layout_height="wrap_content" |
| 156 | android:orientation="vertical" |
| 157 | android:layout_marginBottom="28dp"> |
| 158 | |
Julia Reynolds | b37d565 | 2019-12-12 08:12:29 -0500 | [diff] [blame] | 159 | <TextView |
| 160 | android:layout_height="wrap_content" |
| 161 | android:layout_width="wrap_content" |
| 162 | android:text="@string/notification_history_dismiss" |
| 163 | android:textColor="?android:attr/textColorPrimary" |
Julia Reynolds | 24aac21 | 2020-02-10 17:24:50 -0500 | [diff] [blame] | 164 | android:textAppearance="?android:attr/textAppearanceMedium" |
| 165 | android:paddingBottom="16dp" /> |
Julia Reynolds | ecb66ce | 2020-04-10 15:34:19 -0400 | [diff] [blame] | 166 | <androidx.recyclerview.widget.RecyclerView |
Julia Reynolds | 24aac21 | 2020-02-10 17:24:50 -0500 | [diff] [blame] | 167 | android:id="@+id/notification_list" |
Julia Reynolds | ecb66ce | 2020-04-10 15:34:19 -0400 | [diff] [blame] | 168 | android:elevation="3dp" |
| 169 | android:background="@drawable/rounded_bg" |
Julia Reynolds | 24aac21 | 2020-02-10 17:24:50 -0500 | [diff] [blame] | 170 | android:layout_width="match_parent" |
Julia Reynolds | 2eb9ef4 | 2020-02-13 17:11:27 -0500 | [diff] [blame] | 171 | android:layout_height="wrap_content" |
Julia Reynolds | 24aac21 | 2020-02-10 17:24:50 -0500 | [diff] [blame] | 172 | android:clipChildren="true" |
Julia Reynolds | cfb1f98 | 2020-03-30 11:54:21 -0400 | [diff] [blame] | 173 | android:scrollbars="none"/> |
Julia Reynolds | 24aac21 | 2020-02-10 17:24:50 -0500 | [diff] [blame] | 174 | </LinearLayout> |
Julia Reynolds | b37d565 | 2019-12-12 08:12:29 -0500 | [diff] [blame] | 175 | |
Julia Reynolds | b37d565 | 2019-12-12 08:12:29 -0500 | [diff] [blame] | 176 | <LinearLayout |
Julia Reynolds | 24aac21 | 2020-02-10 17:24:50 -0500 | [diff] [blame] | 177 | android:id="@+id/today_list" |
Julia Reynolds | b37d565 | 2019-12-12 08:12:29 -0500 | [diff] [blame] | 178 | android:layout_width="match_parent" |
Julia Reynolds | 24aac21 | 2020-02-10 17:24:50 -0500 | [diff] [blame] | 179 | android:layout_height="wrap_content" |
| 180 | android:orientation="vertical"> |
Julia Reynolds | b37d565 | 2019-12-12 08:12:29 -0500 | [diff] [blame] | 181 | <TextView |
| 182 | android:layout_height="wrap_content" |
| 183 | android:layout_width="wrap_content" |
| 184 | android:text="@string/notification_history_today" |
| 185 | android:textColor="?android:attr/textColorPrimary" |
Julia Reynolds | 24aac21 | 2020-02-10 17:24:50 -0500 | [diff] [blame] | 186 | android:textAppearance="?android:attr/textAppearanceMedium" |
| 187 | android:paddingBottom="16dp" /> |
| 188 | <LinearLayout |
| 189 | android:id="@+id/apps" |
| 190 | android:layout_width="match_parent" |
| 191 | android:layout_height="wrap_content" |
| 192 | android:elevation="3dp" |
| 193 | android:orientation="vertical" |
| 194 | android:background="@drawable/rounded_bg"> |
| 195 | <!-- app based recycler views added here --> |
| 196 | </LinearLayout> |
Julia Reynolds | b37d565 | 2019-12-12 08:12:29 -0500 | [diff] [blame] | 197 | </LinearLayout> |
| 198 | </LinearLayout> |
| 199 | |
| 200 | </LinearLayout> |
Julia Reynolds | ecb66ce | 2020-04-10 15:34:19 -0400 | [diff] [blame] | 201 | </androidx.core.widget.NestedScrollView> |