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 <LinearLayout 28 android:layout_height="wrap_content" 29 android:layout_width="match_parent" 30 android:background="#663333"> 31 <TextView 32 android:layout_width="wrap_content" 33 android:layout_height="wrap_content" 34 android:text="Some space added to the top to allow buttons to be touchable 35 while heads up notification(s) are active." 36 android:layout_marginTop="100dp" 37 android:layout_marginBottom="100dp"/> 38 </LinearLayout> 39 40 <View 41 android:id="@+id/fragment_top" 42 android:layout_height="wrap_content" 43 android:layout_width="wrap_content"/> 44 45 <TextView 46 android:layout_width="wrap_content" 47 android:layout_height="wrap_content" 48 android:text="Ongoing notifications can only be dismissed by the CANCEL ALL button. Red: heads-up; Blue: no heads-up."/> 49 50 <Button 51 android:id="@+id/cancel_all_button" 52 android:layout_width="wrap_content" 53 android:layout_height="wrap_content" 54 android:layout_margin="10dp" 55 android:text="Cancel All Kitchensink Notifications" 56 android:textSize="30sp"/> 57 58 <LinearLayout 59 android:layout_width="match_parent" 60 android:layout_height="wrap_content" 61 android:background="#334666" 62 android:orientation="vertical"> 63 64 <LinearLayout 65 android:layout_width="match_parent" 66 android:layout_height="wrap_content" 67 android:layout_margin="10dp" 68 android:orientation="horizontal"> 69 70 <TextView 71 android:layout_width="wrap_content" 72 android:layout_height="wrap_content" 73 android:layout_marginStart="10dp" 74 android:layout_marginEnd="10dp" 75 android:layout_gravity="center_vertical" 76 android:text="Number of messages:"/> 77 78 <NumberPicker 79 android:id="@+id/number_messages" 80 android:layout_width="wrap_content" 81 android:layout_height="wrap_content" 82 android:textSize="30sp"/> 83 84 <TextView 85 android:layout_width="wrap_content" 86 android:layout_height="wrap_content" 87 android:layout_marginStart="10dp" 88 android:layout_marginEnd="10dp" 89 android:layout_gravity="center_vertical" 90 android:text="Number of people:"/> 91 92 <NumberPicker 93 android:id="@+id/number_people" 94 android:layout_width="wrap_content" 95 android:layout_height="wrap_content" 96 android:textSize="30sp"/> 97 </LinearLayout> 98 99 <Button 100 android:id="@+id/customizable_message_button" 101 android:layout_width="wrap_content" 102 android:layout_height="wrap_content" 103 android:layout_marginTop="10dp" 104 android:layout_marginBottom="50dp" 105 android:layout_marginStart="10dp" 106 android:layout_marginEnd="10dp" 107 android:textColor="#1da9ff" 108 android:text="Customizable message notification builder" 109 android:textSize="30sp"/> 110 111 <Button 112 android:id="@+id/category_call_button" 113 android:layout_width="wrap_content" 114 android:layout_height="wrap_content" 115 android:layout_margin="10dp" 116 android:textColor="#ffa9a8" 117 android:text="Call (Shows persistent heads-up, only dismissed on cancel)" 118 android:textSize="30sp"/> 119 120 <Button 121 android:id="@+id/category_message_diff_person_button" 122 android:layout_width="wrap_content" 123 android:layout_height="wrap_content" 124 android:layout_margin="10dp" 125 android:textColor="#ffa9a8" 126 android:text="Message from diff person" 127 android:textSize="30sp"/> 128 129 <Button 130 android:id="@+id/category_message_same_person_button" 131 android:layout_width="wrap_content" 132 android:layout_height="wrap_content" 133 android:layout_margin="10dp" 134 android:textColor="#ffa9a8" 135 android:text="Message from same person" 136 android:textSize="30sp"/> 137 138 <Button 139 android:id="@+id/category_long_message_same_person_button" 140 android:layout_width="wrap_content" 141 android:layout_height="wrap_content" 142 android:layout_margin="10dp" 143 android:textColor="#ffa9a8" 144 android:text="Long message from same person" 145 android:textSize="30sp"/> 146 147 <Button 148 android:id="@+id/category_message_same_group_button" 149 android:layout_width="wrap_content" 150 android:layout_height="wrap_content" 151 android:layout_margin="10dp" 152 android:textColor="#ffa9a8" 153 android:text="Message in same group" 154 android:textSize="30sp"/> 155 156 <Button 157 android:id="@+id/category_message_mute_action_button" 158 android:layout_width="wrap_content" 159 android:layout_height="wrap_content" 160 android:layout_margin="10dp" 161 android:textColor="#ffa9a8" 162 android:text="Message with mute pending intent provided" 163 android:textSize="30sp"/> 164 165 <Button 166 android:id="@+id/test_message_button" 167 android:layout_width="wrap_content" 168 android:layout_height="wrap_content" 169 android:layout_margin="10dp" 170 android:textColor="#ffa9a8" 171 android:text="Message (auto update every 6 secs)" 172 android:textSize="30sp"/> 173 174 <Button 175 android:id="@+id/navigation_button" 176 android:layout_width="wrap_content" 177 android:layout_height="wrap_content" 178 android:layout_margin="10dp" 179 android:textColor="#ffa9a8" 180 android:text="Navigation (Only show heads-up, not shown in notification center)" 181 android:textSize="30sp"/> 182 183 <Button 184 android:id="@+id/media_button" 185 android:layout_width="wrap_content" 186 android:layout_height="wrap_content" 187 android:layout_margin="10dp" 188 android:textColor="#ffa9a8" 189 android:text="Media (Not shown anywhere)" 190 android:textSize="30sp"/> 191 192 <Button 193 android:id="@+id/ongoing_button" 194 android:layout_width="wrap_content" 195 android:layout_height="wrap_content" 196 android:layout_margin="10dp" 197 android:text="Persistent (Can't dismiss)" 198 android:textSize="30sp"/> 199 200 <Button 201 android:id="@+id/progress_button" 202 android:layout_width="wrap_content" 203 android:layout_height="wrap_content" 204 android:layout_margin="10dp" 205 android:text="Progress (Can't dismiss)" 206 android:textSize="30sp"/> 207 208 <Button 209 android:id="@+id/progress_button_colorized" 210 android:layout_width="wrap_content" 211 android:layout_height="wrap_content" 212 android:layout_margin="10dp" 213 android:text="Progress Colorized (Can't dismiss)" 214 android:textSize="30sp"/> 215 216 <Button 217 android:id="@+id/custom_group_summary_button" 218 android:layout_width="wrap_content" 219 android:layout_height="wrap_content" 220 android:layout_margin="10dp" 221 android:text="Custom Group Summary of 6 (Inbox Style, Should behave the same as phone)" 222 android:textSize="30sp"/> 223 224 <Button 225 android:id="@+id/group_without_summary_button" 226 android:layout_width="wrap_content" 227 android:layout_height="wrap_content" 228 android:layout_margin="10dp" 229 android:text="Custom Group Without Summary of 6 (Should not group)" 230 android:textSize="30sp"/> 231 232 <Button 233 android:id="@+id/actions_with_icons" 234 android:layout_width="wrap_content" 235 android:layout_height="wrap_content" 236 android:layout_margin="10dp" 237 android:text="Notification with custom action icons" 238 android:textSize="30sp"/> 239 </LinearLayout> 240 241 <LinearLayout 242 android:layout_width="match_parent" 243 android:layout_height="wrap_content" 244 android:background="#5a6633" 245 android:orientation="vertical"> 246 247 <Button 248 android:id="@+id/importance_high_button" 249 android:layout_width="wrap_content" 250 android:layout_height="wrap_content" 251 android:layout_margin="10dp" 252 android:textColor="#ffa9a8" 253 android:text="Importance: HIGH" 254 android:textSize="30sp"/> 255 256 <Button 257 android:id="@+id/importance_default_button" 258 android:layout_width="wrap_content" 259 android:layout_height="wrap_content" 260 android:layout_margin="10dp" 261 android:text="Importance: DEFAULT" 262 android:textSize="30sp"/> 263 </LinearLayout> 264 265 <LinearLayout 266 android:layout_width="match_parent" 267 android:layout_height="wrap_content" 268 android:background="#5a6633" 269 android:orientation="vertical"> 270 271 <Button 272 android:id="@+id/importance_low_button" 273 android:layout_width="wrap_content" 274 android:layout_height="wrap_content" 275 android:layout_margin="10dp" 276 android:text="Importance: LOW" 277 android:textSize="30sp"/> 278 279 <Button 280 android:id="@+id/importance_min_button" 281 android:layout_width="wrap_content" 282 android:layout_height="wrap_content" 283 android:layout_margin="10dp" 284 android:text="Importance: MIN" 285 android:textSize="30sp"/> 286 </LinearLayout> 287 288 <LinearLayout 289 android:layout_width="match_parent" 290 android:layout_height="wrap_content" 291 android:background="#33664d" 292 android:orientation="vertical"> 293 294 <Button 295 android:id="@+id/category_car_emergency_button" 296 android:layout_width="wrap_content" 297 android:layout_height="wrap_content" 298 android:layout_margin="10dp" 299 android:textColor="#ffa9a8" 300 android:text="Car Emergency" 301 android:textSize="30sp"/> 302 303 <Button 304 android:id="@+id/category_car_warning_button" 305 android:layout_width="wrap_content" 306 android:layout_height="wrap_content" 307 android:layout_margin="10dp" 308 android:textColor="#ffa9a8" 309 android:text="Car Warning" 310 android:textSize="30sp"/> 311 312 <Button 313 android:id="@+id/category_car_info_button" 314 android:layout_width="wrap_content" 315 android:layout_height="wrap_content" 316 android:layout_margin="10dp" 317 android:text="Car Information" 318 android:textSize="30sp"/> 319 </LinearLayout> 320 </LinearLayout> 321</ScrollView>