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_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" 65 android:textSize="30sp"/> 66 67 <Button 68 android:id="@+id/test_message_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 (auto update every 6 secs)" 75 android:textSize="30sp"/> 76 77 <Button 78 android:id="@+id/navigation_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="Navigation (Only show heads-up, not shown in notification center)" 85 android:textSize="30sp"/> 86 87 <Button 88 android:id="@+id/media_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="Media (Not shown anywhere)" 95 android:textSize="30sp"/> 96 97 <Button 98 android:id="@+id/ongoing_button" 99 android:layout_width="wrap_content" 100 android:layout_height="wrap_content" 101 android:layout_margin="10dp" 102 android:text="Persistent (Can't dismiss)" 103 android:textSize="30sp"/> 104 105 <Button 106 android:id="@+id/progress_button" 107 android:layout_width="wrap_content" 108 android:layout_height="wrap_content" 109 android:layout_margin="10dp" 110 android:text="Progress (Can't dismiss)" 111 android:textSize="30sp"/> 112 </LinearLayout> 113 114 <LinearLayout 115 android:layout_width="match_parent" 116 android:layout_height="wrap_content" 117 android:background="#5a6633" 118 android:orientation="vertical"> 119 120 <Button 121 android:id="@+id/importance_high_button" 122 android:layout_width="wrap_content" 123 android:layout_height="wrap_content" 124 android:layout_margin="10dp" 125 android:background="#ffa9a8" 126 android:foreground="?android:attr/selectableItemBackground" 127 android:text="Importance: HIGH" 128 android:textSize="30sp"/> 129 130 <Button 131 android:id="@+id/importance_default_button" 132 android:layout_width="wrap_content" 133 android:layout_height="wrap_content" 134 android:layout_margin="10dp" 135 android:text="Importance: DEFAULT" 136 android:textSize="30sp"/> 137 </LinearLayout> 138 139 <LinearLayout 140 android:layout_width="match_parent" 141 android:layout_height="wrap_content" 142 android:background="#5a6633" 143 android:orientation="vertical"> 144 145 <Button 146 android:id="@+id/importance_low_button" 147 android:layout_width="wrap_content" 148 android:layout_height="wrap_content" 149 android:layout_margin="10dp" 150 android:text="Importance: LOW" 151 android:textSize="30sp"/> 152 153 <Button 154 android:id="@+id/importance_min_button" 155 android:layout_width="wrap_content" 156 android:layout_height="wrap_content" 157 android:layout_margin="10dp" 158 android:text="Importance: MIN" 159 android:textSize="30sp"/> 160 </LinearLayout> 161 162 <LinearLayout 163 android:layout_width="match_parent" 164 android:layout_height="wrap_content" 165 android:background="#33664d" 166 android:orientation="vertical"> 167 168 <Button 169 android:id="@+id/category_car_emergency_button" 170 android:layout_width="wrap_content" 171 android:layout_height="wrap_content" 172 android:layout_margin="10dp" 173 android:background="#ffa9a8" 174 android:foreground="?android:attr/selectableItemBackground" 175 android:text="Car Emergency" 176 android:textSize="30sp"/> 177 178 <Button 179 android:id="@+id/category_car_warning_button" 180 android:layout_width="wrap_content" 181 android:layout_height="wrap_content" 182 android:layout_margin="10dp" 183 android:background="#ffa9a8" 184 android:foreground="?android:attr/selectableItemBackground" 185 android:text="Car Warning" 186 android:textSize="30sp"/> 187 188 <Button 189 android:id="@+id/category_car_info_button" 190 android:layout_width="wrap_content" 191 android:layout_height="wrap_content" 192 android:layout_margin="10dp" 193 android:text="Car Information" 194 android:textSize="30sp"/> 195 </LinearLayout> 196 </LinearLayout> 197</ScrollView>