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/incoming_notificationbuilder_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="Incoming Call (old api)"
128                android:textSize="30sp"/>
129
130            <Button
131                android:id="@+id/incoming_forIncomingCall_button"
132                android:layout_width="wrap_content"
133                android:layout_height="wrap_content"
134                android:layout_margin="10dp"
135                android:background="#ffa9a8"
136                android:foreground="?android:attr/selectableItemBackground"
137                android:text="Incoming Call (CallStyle api)"
138                android:textSize="30sp"/>
139
140            <Button
141                android:id="@+id/category_message_diff_person_button"
142                android:layout_width="wrap_content"
143                android:layout_height="wrap_content"
144                android:layout_margin="10dp"
145                android:textColor="#ffa9a8"
146                android:text="Message from diff person"
147                android:textSize="30sp"/>
148
149            <Button
150                android:id="@+id/category_message_same_person_button"
151                android:layout_width="wrap_content"
152                android:layout_height="wrap_content"
153                android:layout_margin="10dp"
154                android:textColor="#ffa9a8"
155                android:text="Message from same person"
156                android:textSize="30sp"/>
157
158            <Button
159                android:id="@+id/category_long_message_same_person_button"
160                android:layout_width="wrap_content"
161                android:layout_height="wrap_content"
162                android:layout_margin="10dp"
163                android:textColor="#ffa9a8"
164                android:text="Long message from same person"
165                android:textSize="30sp"/>
166
167            <Button
168                android:id="@+id/category_message_same_group_button"
169                android:layout_width="wrap_content"
170                android:layout_height="wrap_content"
171                android:layout_margin="10dp"
172                android:textColor="#ffa9a8"
173                android:text="Message in same group"
174                android:textSize="30sp"/>
175
176            <Button
177                android:id="@+id/category_message_mute_action_button"
178                android:layout_width="wrap_content"
179                android:layout_height="wrap_content"
180                android:layout_margin="10dp"
181                android:textColor="#ffa9a8"
182                android:text="Message with mute pending intent provided"
183                android:textSize="30sp"/>
184
185            <Button
186                android:id="@+id/test_message_button"
187                android:layout_width="wrap_content"
188                android:layout_height="wrap_content"
189                android:layout_margin="10dp"
190                android:textColor="#ffa9a8"
191                android:text="Message (auto update every 6 secs)"
192                android:textSize="30sp"/>
193
194            <Button
195                android:id="@+id/navigation_button"
196                android:layout_width="wrap_content"
197                android:layout_height="wrap_content"
198                android:layout_margin="10dp"
199                android:textColor="#ffa9a8"
200                android:text="Navigation (Only show heads-up, not shown in notification center)"
201                android:textSize="30sp"/>
202
203            <Button
204                android:id="@+id/media_button"
205                android:layout_width="wrap_content"
206                android:layout_height="wrap_content"
207                android:layout_margin="10dp"
208                android:textColor="#ffa9a8"
209                android:text="Media (Not shown anywhere)"
210                android:textSize="30sp"/>
211
212            <Button
213                android:id="@+id/ongoing_button"
214                android:layout_width="wrap_content"
215                android:layout_height="wrap_content"
216                android:layout_margin="10dp"
217                android:text="Persistent (Can't dismiss)"
218                android:textSize="30sp"/>
219
220            <Button
221                android:id="@+id/progress_button"
222                android:layout_width="wrap_content"
223                android:layout_height="wrap_content"
224                android:layout_margin="10dp"
225                android:text="Progress (Can't dismiss)"
226                android:textSize="30sp"/>
227
228            <Button
229                android:id="@+id/progress_button_colorized"
230                android:layout_width="wrap_content"
231                android:layout_height="wrap_content"
232                android:layout_margin="10dp"
233                android:text="Progress Colorized (Can't dismiss)"
234                android:textSize="30sp"/>
235
236            <Button
237                android:id="@+id/custom_group_summary_button"
238                android:layout_width="wrap_content"
239                android:layout_height="wrap_content"
240                android:layout_margin="10dp"
241                android:text="Custom Group Summary of 6 (Inbox Style, Should behave the same as phone)"
242                android:textSize="30sp"/>
243
244            <Button
245                android:id="@+id/group_without_summary_button"
246                android:layout_width="wrap_content"
247                android:layout_height="wrap_content"
248                android:layout_margin="10dp"
249                android:text="Custom Group Without Summary of 6 (Should not group)"
250                android:textSize="30sp"/>
251
252            <Button
253                android:id="@+id/actions_with_icons"
254                android:layout_width="wrap_content"
255                android:layout_height="wrap_content"
256                android:layout_margin="10dp"
257                android:text="Notification with custom action icons"
258                android:textSize="30sp"/>
259
260            <Button
261                android:id="@+id/self_dismiss_notification"
262                android:layout_width="wrap_content"
263                android:layout_height="wrap_content"
264                android:layout_margin="10dp"
265                android:text="Notification that gets dismissed on click"
266                android:textSize="30sp"/>
267
268        </LinearLayout>
269
270        <LinearLayout
271            android:layout_width="match_parent"
272            android:layout_height="wrap_content"
273            android:background="#5a6633"
274            android:orientation="vertical">
275
276            <Button
277                android:id="@+id/importance_high_button"
278                android:layout_width="wrap_content"
279                android:layout_height="wrap_content"
280                android:layout_margin="10dp"
281                android:textColor="#ffa9a8"
282                android:text="Importance: HIGH"
283                android:textSize="30sp"/>
284
285            <Button
286                android:id="@+id/importance_default_button"
287                android:layout_width="wrap_content"
288                android:layout_height="wrap_content"
289                android:layout_margin="10dp"
290                android:text="Importance: DEFAULT"
291                android:textSize="30sp"/>
292        </LinearLayout>
293
294        <LinearLayout
295            android:layout_width="match_parent"
296            android:layout_height="wrap_content"
297            android:background="#5a6633"
298            android:orientation="vertical">
299
300            <Button
301                android:id="@+id/importance_low_button"
302                android:layout_width="wrap_content"
303                android:layout_height="wrap_content"
304                android:layout_margin="10dp"
305                android:text="Importance: LOW"
306                android:textSize="30sp"/>
307
308            <Button
309                android:id="@+id/importance_min_button"
310                android:layout_width="wrap_content"
311                android:layout_height="wrap_content"
312                android:layout_margin="10dp"
313                android:text="Importance: MIN"
314                android:textSize="30sp"/>
315        </LinearLayout>
316
317        <LinearLayout
318            android:layout_width="match_parent"
319            android:layout_height="wrap_content"
320            android:background="#33664d"
321            android:orientation="vertical">
322
323            <Button
324                android:id="@+id/category_car_emergency_button"
325                android:layout_width="wrap_content"
326                android:layout_height="wrap_content"
327                android:layout_margin="10dp"
328                android:textColor="#ffa9a8"
329                android:text="Car Emergency"
330                android:textSize="30sp"/>
331
332            <Button
333                android:id="@+id/category_car_warning_button"
334                android:layout_width="wrap_content"
335                android:layout_height="wrap_content"
336                android:layout_margin="10dp"
337                android:textColor="#ffa9a8"
338                android:text="Car Warning"
339                android:textSize="30sp"/>
340
341            <Button
342                android:id="@+id/category_car_info_button"
343                android:layout_width="wrap_content"
344                android:layout_height="wrap_content"
345                android:layout_margin="10dp"
346                android:text="Car Information"
347                android:textSize="30sp"/>
348        </LinearLayout>
349    </LinearLayout>
350</ScrollView>