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:background="?android:attr/colorBackgroundFloating" 21 android:layout_width="match_parent" 22 android:layout_height="match_parent"> 23 24 <LinearLayout 25 android:layout_width="match_parent" 26 android:layout_height="wrap_content" 27 android:orientation="vertical"> 28 29 <com.android.settingslib.widget.MainSwitchBar 30 android:id="@+id/main_switch_bar" 31 android:visibility="invisible" 32 android:layout_height="wrap_content" 33 android:layout_width="match_parent" /> 34 35 <LinearLayout 36 android:id="@+id/history_off" 37 android:visibility="gone" 38 android:layout_width="match_parent" 39 android:layout_height="wrap_content" 40 android:layout_marginTop="164dp" 41 android:orientation="vertical"> 42 43 <ImageView 44 android:id="@+id/history_image" 45 android:layout_width="67dp" 46 android:layout_height="67dp" 47 android:layout_gravity="center_horizontal" 48 android:scaleType="fitCenter" 49 android:focusable="false" 50 android:tint="?android:attr/colorControlNormal" 51 android:src="@drawable/ic_history" /> 52 53 <TextView 54 android:id="@+id/history_off_title" 55 android:layout_width="wrap_content" 56 android:layout_height="wrap_content" 57 android:layout_marginTop="48dp" 58 android:layout_marginStart="48dp" 59 android:layout_marginEnd="48dp" 60 android:layout_gravity="center_horizontal" 61 android:gravity="center" 62 android:focusable="true" 63 android:textAppearance="?android:attr/textAppearanceMedium" 64 android:fontFamily="@*android:string/config_headlineFontFamilyMedium" 65 android:text="@string/notification_history_off_title_extended" /> 66 67 <TextView 68 android:id="@+id/history_off_summary" 69 android:layout_width="wrap_content" 70 android:layout_height="wrap_content" 71 android:layout_marginStart="48dp" 72 android:layout_marginEnd="48dp" 73 android:layout_marginTop="16dp" 74 android:layout_gravity="center_horizontal" 75 android:textAlignment="center" 76 android:focusable="true" 77 android:textAppearance="?android:attr/textAppearanceSmall" 78 android:textColor="?android:attr/textColorSecondary" 79 android:text="@string/notification_history_off_summary" /> 80 81 </LinearLayout> 82 83 <LinearLayout 84 android:id="@+id/history_on_empty" 85 android:visibility="gone" 86 android:layout_width="match_parent" 87 android:layout_height="wrap_content" 88 android:layout_marginTop="164dp" 89 android:orientation="vertical"> 90 <ImageView 91 android:id="@+id/history_image_on" 92 android:layout_width="67dp" 93 android:layout_height="67dp" 94 android:layout_gravity="center_horizontal" 95 android:scaleType="fitCenter" 96 android:focusable="false" 97 android:tint="?android:attr/colorControlNormal" 98 android:src="@drawable/ic_history" /> 99 <TextView 100 android:id="@+id/history_toggled_on_title" 101 android:layout_width="wrap_content" 102 android:layout_height="wrap_content" 103 android:layout_marginTop="48dp" 104 android:layout_marginStart="48dp" 105 android:layout_marginEnd="48dp" 106 android:layout_gravity="center_horizontal" 107 android:gravity="center" 108 android:focusable="true" 109 android:textAppearance="?android:attr/textAppearanceMedium" 110 android:fontFamily="@*android:string/config_headlineFontFamilyMedium" 111 android:text="@string/history_toggled_on_title" /> 112 113 <TextView 114 android:id="@+id/history_toggled_on_summary" 115 android:layout_width="wrap_content" 116 android:layout_height="wrap_content" 117 android:layout_below="@+id/history_off_title" 118 android:layout_marginStart="48dp" 119 android:layout_marginEnd="48dp" 120 android:layout_marginTop="16dp" 121 android:layout_gravity="center_horizontal" 122 android:textAlignment="center" 123 android:focusable="true" 124 android:textAppearance="?android:attr/textAppearanceSmall" 125 android:textColor="?android:attr/textColorSecondary" 126 android:text="@string/history_toggled_on_summary" /> 127 </LinearLayout> 128 129 <LinearLayout 130 android:id="@+id/history_on" 131 android:visibility="gone" 132 android:layout_width="match_parent" 133 android:layout_height="wrap_content" 134 android:orientation="vertical" 135 android:padding="16dp"> 136 137 <LinearLayout 138 android:id="@+id/snoozed_list" 139 android:layout_width="match_parent" 140 android:layout_height="wrap_content" 141 android:orientation="vertical" 142 android:layout_marginBottom="28dp"> 143 <TextView 144 android:layout_height="wrap_content" 145 android:layout_width="wrap_content" 146 android:text="@string/notification_history_snooze" 147 android:textColor="?android:attr/textColorPrimary" 148 android:textAppearance="@style/TextAppearance.HomepageCardTitle" 149 android:paddingBottom="16dp" /> 150 151 <androidx.recyclerview.widget.RecyclerView 152 android:id="@+id/notification_list" 153 android:background="@drawable/rounded_bg" 154 android:layout_width="match_parent" 155 android:layout_height="wrap_content" 156 android:clipChildren="true" 157 android:scrollbars="none"/> 158 </LinearLayout> 159 160 <LinearLayout 161 android:id="@+id/recently_dismissed_list" 162 android:layout_width="match_parent" 163 android:layout_height="wrap_content" 164 android:orientation="vertical" 165 android:layout_marginBottom="28dp"> 166 167 <TextView 168 android:layout_height="wrap_content" 169 android:layout_width="wrap_content" 170 android:text="@string/notification_history_dismiss" 171 android:textColor="?android:attr/textColorPrimary" 172 android:textAppearance="@style/TextAppearance.HomepageCardTitle" 173 android:paddingBottom="16dp" /> 174 <androidx.recyclerview.widget.RecyclerView 175 android:id="@+id/notification_list" 176 android:background="@drawable/rounded_bg" 177 android:layout_width="match_parent" 178 android:layout_height="wrap_content" 179 android:clipChildren="true" 180 android:scrollbars="none"/> 181 </LinearLayout> 182 183 <LinearLayout 184 android:id="@+id/today_list" 185 android:layout_width="match_parent" 186 android:layout_height="wrap_content" 187 android:orientation="vertical"> 188 <TextView 189 android:layout_height="wrap_content" 190 android:layout_width="wrap_content" 191 android:text="@string/notification_history_today" 192 android:textColor="?android:attr/textColorPrimary" 193 android:textAppearance="@style/TextAppearance.HomepageCardTitle" 194 android:paddingBottom="16dp" /> 195 <LinearLayout 196 android:id="@+id/apps" 197 android:layout_width="match_parent" 198 android:layout_height="wrap_content" 199 android:orientation="vertical" 200 android:background="@drawable/rounded_bg"> 201 <!-- app based recycler views added here --> 202 </LinearLayout> 203 </LinearLayout> 204 </LinearLayout> 205 </LinearLayout> 206</androidx.core.widget.NestedScrollView> 207