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 17<androidx.core.widget.NestedScrollView 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 android:id="@+id/scroll" 20 android:layout_width="match_parent" 21 android:layout_height="match_parent"> 22 23 <LinearLayout 24 android:layout_width="match_parent" 25 android:layout_height="wrap_content" 26 android:orientation="vertical"> 27 28 <include layout="@layout/styled_switch_bar"/> 29 30 <LinearLayout 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" 43 android:scaleType="fitCenter" 44 android:focusable="false" 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" 52 android:layout_marginTop="48dp" 53 android:layout_marginStart="48dp" 54 android:layout_marginEnd="48dp" 55 android:layout_gravity="center_horizontal" 56 android:gravity="center" 57 android:focusable="true" 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" 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" 70 android:focusable="true" 71 android:textAppearance="?android:attr/textAppearanceSmall" 72 android:text="@string/notification_history_off_summary" /> 73 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" /> 92 <TextView 93 android:id="@+id/history_toggled_on_title" 94 android:layout_width="wrap_content" 95 android:layout_height="wrap_content" 96 android:layout_marginTop="48dp" 97 android:layout_marginStart="48dp" 98 android:layout_marginEnd="48dp" 99 android:layout_gravity="center_horizontal" 100 android:gravity="center" 101 android:focusable="true" 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" 116 android:textAppearance="?android:attr/textAppearanceSmall" 117 android:text="@string/history_toggled_on_summary" /> 118 </LinearLayout> 119 120 <LinearLayout 121 android:id="@+id/history_on" 122 android:visibility="gone" 123 android:layout_width="match_parent" 124 android:layout_height="wrap_content" 125 android:orientation="vertical" 126 android:padding="16dp"> 127 128 <LinearLayout 129 android:id="@+id/snoozed_list" 130 android:layout_width="match_parent" 131 android:layout_height="wrap_content" 132 android:orientation="vertical" 133 android:layout_marginBottom="28dp"> 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" 139 android:textAppearance="@style/TextAppearance.HomepageCardTitle" 140 android:paddingBottom="16dp" /> 141 142 <androidx.recyclerview.widget.RecyclerView 143 android:id="@+id/notification_list" 144 android:elevation="1dp" 145 android:background="@drawable/rounded_bg" 146 android:layout_width="match_parent" 147 android:layout_height="wrap_content" 148 android:clipChildren="true" 149 android:scrollbars="none"/> 150 </LinearLayout> 151 152 <LinearLayout 153 android:id="@+id/recently_dismissed_list" 154 android:layout_width="match_parent" 155 android:layout_height="wrap_content" 156 android:orientation="vertical" 157 android:layout_marginBottom="28dp"> 158 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" 164 android:textAppearance="@style/TextAppearance.HomepageCardTitle" 165 android:paddingBottom="16dp" /> 166 <androidx.recyclerview.widget.RecyclerView 167 android:id="@+id/notification_list" 168 android:elevation="1dp" 169 android:background="@drawable/rounded_bg" 170 android:layout_width="match_parent" 171 android:layout_height="wrap_content" 172 android:clipChildren="true" 173 android:scrollbars="none"/> 174 </LinearLayout> 175 176 <LinearLayout 177 android:id="@+id/today_list" 178 android:layout_width="match_parent" 179 android:layout_height="wrap_content" 180 android:orientation="vertical"> 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" 186 android:textAppearance="@style/TextAppearance.HomepageCardTitle" 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="1dp" 193 android:orientation="vertical" 194 android:background="@drawable/rounded_bg"> 195 <!-- app based recycler views added here --> 196 </LinearLayout> 197 </LinearLayout> 198 </LinearLayout> 199 </LinearLayout> 200</androidx.core.widget.NestedScrollView>