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