1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2018 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<ScrollView 17 xmlns:android="http://schemas.android.com/apk/res/android" 18 android:id="@+id/content" 19 android:layout_width="match_parent" 20 android:layout_height="wrap_content" 21 android:fadeScrollbars="false"> 22 23 <LinearLayout 24 android:layout_width="match_parent" 25 android:layout_height="wrap_content" 26 android:orientation="vertical"> 27 28 <TextView 29 android:layout_width="wrap_content" 30 android:layout_height="wrap_content" 31 android:text="Ongoing notifications can only be dismissed by the CANCEL ALL button. Red: heads-up; Blue: no heads-up."/> 32 33 <Button 34 android:id="@+id/cancel_all_button" 35 android:layout_width="wrap_content" 36 android:layout_height="wrap_content" 37 android:layout_margin="10dp" 38 android:text="Cancel All Kitchensink Notifications" 39 android:textSize="30sp"/> 40 41 <LinearLayout 42 android:layout_width="match_parent" 43 android:layout_height="wrap_content" 44 android:background="#334666" 45 android:orientation="vertical"> 46 47 <Button 48 android:id="@+id/category_call_button" 49 android:layout_width="wrap_content" 50 android:layout_height="wrap_content" 51 android:layout_margin="10dp" 52 android:background="#ffa9a8" 53 android:foreground="?android:attr/selectableItemBackground" 54 android:text="Call (Shows persistent heads-up, only dismissed on cancel)" 55 android:textSize="30sp"/> 56 57 <Button 58 android:id="@+id/category_message_diff_person_button" 59 android:layout_width="wrap_content" 60 android:layout_height="wrap_content" 61 android:layout_margin="10dp" 62 android:background="#ffa9a8" 63 android:foreground="?android:attr/selectableItemBackground" 64 android:text="Message from diff person" 65 android:textSize="30sp"/> 66 67 <Button 68 android:id="@+id/category_message_same_person_button" 69 android:layout_width="wrap_content" 70 android:layout_height="wrap_content" 71 android:layout_margin="10dp" 72 android:background="#ffa9a8" 73 android:foreground="?android:attr/selectableItemBackground" 74 android:text="Message from same person" 75 android:textSize="30sp"/> 76 77 <Button 78 android:id="@+id/category_message_mute_action_button" 79 android:layout_width="wrap_content" 80 android:layout_height="wrap_content" 81 android:layout_margin="10dp" 82 android:background="#ffa9a8" 83 android:foreground="?android:attr/selectableItemBackground" 84 android:text="Message with mute pending intent provided" 85 android:textSize="30sp"/> 86 87 <Button 88 android:id="@+id/test_message_button" 89 android:layout_width="wrap_content" 90 android:layout_height="wrap_content" 91 android:layout_margin="10dp" 92 android:background="#ffa9a8" 93 android:foreground="?android:attr/selectableItemBackground" 94 android:text="Message (auto update every 6 secs)" 95 android:textSize="30sp"/> 96 97 <Button 98 android:id="@+id/navigation_button" 99 android:layout_width="wrap_content" 100 android:layout_height="wrap_content" 101 android:layout_margin="10dp" 102 android:background="#ffa9a8" 103 android:foreground="?android:attr/selectableItemBackground" 104 android:text="Navigation (Only show heads-up, not shown in notification center)" 105 android:textSize="30sp"/> 106 107 <Button 108 android:id="@+id/media_button" 109 android:layout_width="wrap_content" 110 android:layout_height="wrap_content" 111 android:layout_margin="10dp" 112 android:background="#ffa9a8" 113 android:foreground="?android:attr/selectableItemBackground" 114 android:text="Media (Not shown anywhere)" 115 android:textSize="30sp"/> 116 117 <Button 118 android:id="@+id/ongoing_button" 119 android:layout_width="wrap_content" 120 android:layout_height="wrap_content" 121 android:layout_margin="10dp" 122 android:text="Persistent (Can't dismiss)" 123 android:textSize="30sp"/> 124 125 <Button 126 android:id="@+id/progress_button" 127 android:layout_width="wrap_content" 128 android:layout_height="wrap_content" 129 android:layout_margin="10dp" 130 android:text="Progress (Can't dismiss)" 131 android:textSize="30sp"/> 132 133 <Button 134 android:id="@+id/custom_group_summary_button" 135 android:layout_width="wrap_content" 136 android:layout_height="wrap_content" 137 android:layout_margin="10dp" 138 android:text="Custom Group Summary of 6 (Inbox Style, Should behave the same as phone)" 139 android:textSize="30sp"/> 140 141 <Button 142 android:id="@+id/group_without_summary_button" 143 android:layout_width="wrap_content" 144 android:layout_height="wrap_content" 145 android:layout_margin="10dp" 146 android:text="Custom Group Without Summary of 6 (Should not group)" 147 android:textSize="30sp"/> 148 </LinearLayout> 149 150 <LinearLayout 151 android:layout_width="match_parent" 152 android:layout_height="wrap_content" 153 android:background="#5a6633" 154 android:orientation="vertical"> 155 156 <Button 157 android:id="@+id/importance_high_button" 158 android:layout_width="wrap_content" 159 android:layout_height="wrap_content" 160 android:layout_margin="10dp" 161 android:background="#ffa9a8" 162 android:foreground="?android:attr/selectableItemBackground" 163 android:text="Importance: HIGH" 164 android:textSize="30sp"/> 165 166 <Button 167 android:id="@+id/importance_default_button" 168 android:layout_width="wrap_content" 169 android:layout_height="wrap_content" 170 android:layout_margin="10dp" 171 android:text="Importance: DEFAULT" 172 android:textSize="30sp"/> 173 </LinearLayout> 174 175 <LinearLayout 176 android:layout_width="match_parent" 177 android:layout_height="wrap_content" 178 android:background="#5a6633" 179 android:orientation="vertical"> 180 181 <Button 182 android:id="@+id/importance_low_button" 183 android:layout_width="wrap_content" 184 android:layout_height="wrap_content" 185 android:layout_margin="10dp" 186 android:text="Importance: LOW" 187 android:textSize="30sp"/> 188 189 <Button 190 android:id="@+id/importance_min_button" 191 android:layout_width="wrap_content" 192 android:layout_height="wrap_content" 193 android:layout_margin="10dp" 194 android:text="Importance: MIN" 195 android:textSize="30sp"/> 196 </LinearLayout> 197 198 <LinearLayout 199 android:layout_width="match_parent" 200 android:layout_height="wrap_content" 201 android:background="#33664d" 202 android:orientation="vertical"> 203 204 <Button 205 android:id="@+id/category_car_emergency_button" 206 android:layout_width="wrap_content" 207 android:layout_height="wrap_content" 208 android:layout_margin="10dp" 209 android:background="#ffa9a8" 210 android:foreground="?android:attr/selectableItemBackground" 211 android:text="Car Emergency" 212 android:textSize="30sp"/> 213 214 <Button 215 android:id="@+id/category_car_warning_button" 216 android:layout_width="wrap_content" 217 android:layout_height="wrap_content" 218 android:layout_margin="10dp" 219 android:background="#ffa9a8" 220 android:foreground="?android:attr/selectableItemBackground" 221 android:text="Car Warning" 222 android:textSize="30sp"/> 223 224 <Button 225 android:id="@+id/category_car_info_button" 226 android:layout_width="wrap_content" 227 android:layout_height="wrap_content" 228 android:layout_margin="10dp" 229 android:text="Car Information" 230 android:textSize="30sp"/> 231 </LinearLayout> 232 </LinearLayout> 233</ScrollView>