notification_builder_test.xml revision 8d0b655c496e9125fc8d289c4e5bc9a78297ba3d
1<?xml version="1.0" encoding="utf-8"?>
2<LinearLayout
3        xmlns:android="http://schemas.android.com/apk/res/android"
4        android:layout_width="match_parent"
5        android:layout_height="match_parent"
6        android:orientation="horizontal"
7        android:paddingLeft="40dp"
8        android:paddingTop="12dp"
9        android:paddingRight="24dp"
10        android:paddingBottom="12dp"
11        >
12
13    <LinearLayout
14            android:layout_width="220sp"
15            android:layout_height="match_parent"
16            android:layout_marginRight="24dp"
17            android:orientation="vertical"
18            >
19        <LinearLayout
20                android:layout_width="match_parent"
21                android:layout_height="wrap_content"
22                android:orientation="horizontal"
23                >
24            <Button
25                    style="@style/IdButton.Minus"
26                    android:id="@+id/clear_1"
27                    />
28            <TextView
29                    style="@style/IdTitle"
30                    android:text="1"
31                    />
32            <Button
33                    style="@style/IdButton.Plus"
34                    android:id="@+id/notify_1"
35                    />
36        </LinearLayout>
37        <LinearLayout
38                android:layout_width="match_parent"
39                android:layout_height="wrap_content"
40                android:orientation="horizontal"
41                >
42            <Button
43                    style="@style/IdButton.Minus"
44                    android:id="@+id/clear_2"
45                    />
46            <TextView
47                    style="@style/IdTitle"
48                    android:text="2"
49                    />
50            <Button
51                    style="@style/IdButton.Plus"
52                    android:id="@+id/notify_2"
53                    />
54        </LinearLayout>
55        <LinearLayout
56                android:layout_width="match_parent"
57                android:layout_height="wrap_content"
58                android:orientation="horizontal"
59                >
60            <Button
61                    style="@style/IdButton.Minus"
62                    android:id="@+id/clear_3"
63                    />
64            <TextView
65                    style="@style/IdTitle"
66                    android:text="3"
67                    />
68            <Button
69                    style="@style/IdButton.Plus"
70                    android:id="@+id/notify_3"
71                    />
72        </LinearLayout>
73        <LinearLayout
74                android:layout_width="match_parent"
75                android:layout_height="wrap_content"
76                android:orientation="horizontal"
77                >
78            <Button
79                    style="@style/IdButton.Minus"
80                    android:id="@+id/clear_4"
81                    />
82            <TextView
83                    style="@style/IdTitle"
84                    android:text="4"
85                    />
86            <Button
87                    style="@style/IdButton.Plus"
88                    android:id="@+id/notify_4"
89                    />
90        </LinearLayout>
91        <LinearLayout
92                android:layout_width="match_parent"
93                android:layout_height="wrap_content"
94                android:orientation="horizontal"
95                >
96            <Button
97                    style="@style/IdButton.Minus"
98                    android:id="@+id/clear_5"
99                    />
100            <TextView
101                    style="@style/IdTitle"
102                    android:text="5"
103                    />
104            <Button
105                    style="@style/IdButton.Plus"
106                    android:id="@+id/notify_5"
107                    />
108        </LinearLayout>
109        <LinearLayout
110                android:layout_width="match_parent"
111                android:layout_height="wrap_content"
112                android:orientation="horizontal"
113                >
114            <Button
115                    style="@style/IdButton.Minus"
116                    android:id="@+id/clear_6"
117                    />
118            <TextView
119                    style="@style/IdTitle"
120                    android:text="6"
121                    />
122            <Button
123                    style="@style/IdButton.Plus"
124                    android:id="@+id/notify_6"
125                    />
126        </LinearLayout>
127        <LinearLayout
128                android:layout_width="match_parent"
129                android:layout_height="wrap_content"
130                android:orientation="horizontal"
131                >
132            <Button
133                    style="@style/IdButton.Minus"
134                    android:id="@+id/clear_7"
135                    />
136            <TextView
137                    style="@style/IdTitle"
138                    android:text="7"
139                    />
140            <Button
141                    style="@style/IdButton.Plus"
142                    android:id="@+id/notify_7"
143                    />
144        </LinearLayout>
145        <LinearLayout
146                android:layout_width="match_parent"
147                android:layout_height="wrap_content"
148                android:orientation="horizontal"
149                >
150            <Button
151                    style="@style/IdButton.Minus"
152                    android:id="@+id/clear_8"
153                    />
154            <TextView
155                    style="@style/IdTitle"
156                    android:text="8"
157                    />
158            <Button
159                    style="@style/IdButton.Plus"
160                    android:id="@+id/notify_8"
161                    />
162        </LinearLayout>
163        <LinearLayout
164                android:layout_width="match_parent"
165                android:layout_height="wrap_content"
166                android:orientation="horizontal"
167                >
168            <Button
169                    style="@style/IdButton.Minus"
170                    android:id="@+id/clear_9"
171                    />
172            <TextView
173                    style="@style/IdTitle"
174                    android:text="9"
175                    />
176            <Button
177                    style="@style/IdButton.Plus"
178                    android:id="@+id/notify_9"
179                    />
180        </LinearLayout>
181        <LinearLayout
182                android:layout_width="match_parent"
183                android:layout_height="wrap_content"
184                android:orientation="horizontal"
185                >
186            <Button
187                    style="@style/IdButton.Minus"
188                    android:id="@+id/clear_10"
189                    />
190            <TextView
191                    style="@style/IdTitle"
192                    android:text="10"
193                    />
194            <Button
195                    style="@style/IdButton.Plus"
196                    android:id="@+id/notify_10"
197                    />
198        </LinearLayout>
199
200        <Button
201                android:id="@+id/clear_all"
202                android:layout_width="match_parent"
203                android:layout_height="wrap_content"
204                android:layout_marginTop="12dp"
205                android:layout_marginBottom="12dp"
206                android:text="Clear All"
207                />
208        <Button
209                android:id="@+id/ten"
210                android:layout_width="match_parent"
211                android:layout_height="wrap_content"
212                android:text="Ten notifications"
213                />
214                
215    </LinearLayout>
216
217    <ScrollView
218            android:layout_width="wrap_content"
219            android:layout_height="match_parent"
220            android:layout_weight="1"
221            >
222        <LinearLayout
223                android:layout_width="wrap_content"
224                android:layout_height="wrap_content"
225                android:orientation="vertical"
226                >
227
228            <!-- setWhen -->
229            <RadioGroup
230                    android:id="@+id/group_when"
231                    android:layout_width="wrap_content"
232                    android:layout_height="wrap_content"
233                    android:orientation="horizontal"
234                    >
235                <TextView
236                        style="@style/FieldTitle"
237                        android:text="setWhen"
238                        />
239                <RadioButton
240                        android:id="@+id/when_midnight"
241                        style="@style/FieldContents.Disabled"
242                        android:text="midnight"
243                        />
244                <RadioButton
245                        android:id="@+id/when_now"
246                        style="@style/FieldContents"
247                        android:text="now"
248                        />
249                <RadioButton
250                        android:id="@+id/when_now_plus_1h"
251                        style="@style/FieldContents.Disabled"
252                        android:text="now + 1h"
253                        />
254                <RadioButton
255                        android:id="@+id/when_tomorrow"
256                        style="@style/FieldContents.Disabled"
257                        android:text="tomorrow"
258                        />
259            </RadioGroup>
260
261            <!-- icon -->
262            <RadioGroup
263                    android:id="@+id/group_icon"
264                    android:layout_width="wrap_content"
265                    android:layout_height="wrap_content"
266                    android:orientation="horizontal"
267                    >
268                <TextView
269                        style="@style/FieldTitle"
270                        android:text="setSmallIcon"
271                        />
272                <RadioButton
273                        android:id="@+id/icon_im"
274                        style="@style/FieldContents"
275                        android:text="IM"
276                        />
277                <RadioButton
278                        android:id="@+id/icon_alert"
279                        style="@style/FieldContents"
280                        android:text="alert"
281                        />
282                <RadioButton
283                        android:id="@+id/icon_surprise"
284                        style="@style/FieldContents"
285                        android:text="surprise"
286                        />
287                <RadioButton
288                        android:id="@+id/icon_level0"
289                        style="@style/FieldContents.Disabled"
290                        android:text="level 0"
291                        />
292                <RadioButton
293                        android:id="@+id/icon_level50"
294                        style="@style/FieldContents.Disabled"
295                        android:text="level 50"
296                        />
297                <RadioButton
298                        android:id="@+id/icon_level100"
299                        style="@style/FieldContents.Disabled"
300                        android:text="level 100"
301                        />
302                <!-- todo setSmallIcon(int icon, int level) -->
303            </RadioGroup>
304            
305            <!-- setContentTitle -->
306            <RadioGroup
307                    android:id="@+id/group_title"
308                    android:layout_width="wrap_content"
309                    android:layout_height="wrap_content"
310                    android:orientation="horizontal"
311                    >
312                <TextView
313                        style="@style/FieldTitle"
314                        android:text="setContentTitle"
315                        />
316                <RadioButton
317                        android:id="@+id/title_short"
318                        style="@style/FieldContents"
319                        android:text="none"
320                        android:tag=""
321                        />
322                <RadioButton
323                        android:id="@+id/title_short"
324                        style="@style/FieldContents"
325                        android:text="cwshort"
326                        android:tag="Title"
327                        />
328                <RadioButton
329                        android:id="@+id/title_medium"
330                        style="@style/FieldContents"
331                        android:text="medium"
332                        android:tag="Notification Test"
333                        />
334                <RadioButton
335                        android:id="@+id/title_long"
336                        style="@style/FieldContents"
337                        android:text="long"
338                        android:tag="This is one heckuva long title for a notification"
339                        />
340            </RadioGroup>
341            
342            <!-- setContentText -->
343            <RadioGroup
344                    android:id="@+id/group_text"
345                    android:layout_width="wrap_content"
346                    android:layout_height="wrap_content"
347                    android:orientation="horizontal"
348                    >
349                <TextView
350                        style="@style/FieldTitle"
351                        android:text="setContentText"
352                        />
353                <RadioButton
354                        android:id="@+id/text_none"
355                        style="@style/FieldContents"
356                        android:text="none"
357                        android:tag=""
358                        />
359                <RadioButton
360                        android:id="@+id/text_short"
361                        style="@style/FieldContents"
362                        android:tag="short"
363                        android:text="text"
364                        />
365                <RadioButton
366                        android:id="@+id/text_medium"
367                        style="@style/FieldContents"
368                        android:text="medium"
369                        android:tag="Something happened"
370                        />
371                <RadioButton
372                        android:id="@+id/text_long"
373                        style="@style/FieldContents"
374                        android:text="long"
375                        android:tag="Oh my goodness.  SOMETHING HAPPENED!!!!"
376                        />
377                <RadioButton
378                        android:id="@+id/text_haiku"
379                        style="@style/FieldContents"
380                        android:text="haiku"
381                        android:tag="sholes final approach\nlanding gear punted to flan\nrunway foam glistens"
382                        />
383            </RadioGroup>
384
385            <!-- setContentInfo -->
386            <RadioGroup
387                    android:id="@+id/group_info"
388                    android:layout_width="wrap_content"
389                    android:layout_height="wrap_content"
390                    android:orientation="horizontal"
391                    >
392                <TextView
393                        style="@style/FieldTitle"
394                        android:text="setContentInfo"
395                        />
396                <RadioButton
397                        android:id="@+id/info_none"
398                        style="@style/FieldContents"
399                        android:text="none"
400                        android:tag=""
401                        />
402                <RadioButton
403                        android:id="@+id/info_number"
404                        style="@style/FieldContents"
405                        android:text="snoozed"
406                        android:tag="snoozed"
407                        />
408                <RadioButton
409                        android:id="@+id/info_long"
410                        style="@style/FieldContents"
411                        android:text="longer"
412                        android:tag="this content info is way too long"
413                        />
414            </RadioGroup>
415
416            <!-- setNumber -->
417            <RadioGroup
418                    android:id="@+id/group_number"
419                    android:layout_width="wrap_content"
420                    android:layout_height="wrap_content"
421                    android:orientation="horizontal"
422                    >
423                <TextView
424                        style="@style/FieldTitle"
425                        android:text="setNumber"
426                        />
427                <RadioButton
428                        android:id="@+id/number_0"
429                        style="@style/FieldContents"
430                        android:text="0"
431                        android:tag="0"
432                        />
433                <RadioButton
434                        android:id="@+id/number_1"
435                        style="@style/FieldContents"
436                        android:text="1"
437                        android:tag="1"
438                        />
439                <RadioButton
440                        android:id="@+id/number_42"
441                        style="@style/FieldContents"
442                        android:text="42"
443                        android:tag="42"
444                        />
445                <RadioButton
446                        android:id="@+id/number_334"
447                        style="@style/FieldContents"
448                        android:text="334"
449                        android:tag="334"
450                        />
451                <RadioButton
452                        android:id="@+id/number_999"
453                        style="@style/FieldContents"
454                        android:text="999"
455                        android:tag="999"
456                        />
457                <RadioButton
458                        android:id="@+id/number_9876"
459                        style="@style/FieldContents"
460                        android:text="9,876"
461                        android:tag="9876"
462                        />
463                <RadioButton
464                        android:id="@+id/number_12345"
465                        style="@style/FieldContents"
466                        android:text="12,345"
467                        android:tag="12345"
468                        />
469            </RadioGroup>
470            
471            <!-- setContentIntent -->
472            <RadioGroup
473                    android:id="@+id/group_intent"
474                    android:layout_width="wrap_content"
475                    android:layout_height="wrap_content"
476                    android:orientation="horizontal"
477                    >
478                <TextView
479                        style="@style/FieldTitle"
480                        android:text="setContentIntent"
481                        />
482                <RadioButton
483                        android:id="@+id/intent_none"
484                        style="@style/FieldContents"
485                        android:text="none"
486                        />
487                <RadioButton
488                        android:id="@+id/intent_alert"
489                        style="@style/FieldContents"
490                        android:text="alert"
491                        />
492            </RadioGroup>
493            
494            <!-- setDeleteIntent -->
495            <RadioGroup
496                    android:id="@+id/group_delete"
497                    android:layout_width="wrap_content"
498                    android:layout_height="wrap_content"
499                    android:orientation="horizontal"
500                    >
501                <TextView
502                        style="@style/FieldTitle"
503                        android:text="setDeleteIntent"
504                        />
505                <RadioButton
506                        android:id="@+id/delete_none"
507                        style="@style/FieldContents"
508                        android:text="none"
509                        />
510                <RadioButton
511                        android:id="@+id/delete_alert"
512                        style="@style/FieldContents"
513                        android:text="alert"
514                        />
515            </RadioGroup>
516            
517
518            <!-- setFullScreenIntent -->
519            <RadioGroup
520                    android:id="@+id/group_full_screen"
521                    android:layout_width="wrap_content"
522                    android:layout_height="wrap_content"
523                    android:orientation="horizontal"
524                    android:visibility="gone"
525                    >
526                <TextView
527                        style="@style/FieldTitle"
528                        android:text="setFullScreenIntent"
529                        />
530                <RadioButton
531                        android:id="@+id/full_screen_none"
532                        style="@style/FieldContents.Disabled"
533                        android:text="none"
534                        />
535                <RadioButton
536                        android:id="@+id/full_screen_activity"
537                        style="@style/FieldContents.Disabled"
538                        android:text="full screen"
539                        />
540            </RadioGroup>
541            
542
543            <!-- setTicker -->
544            <RadioGroup
545                    android:id="@+id/group_ticker"
546                    android:layout_width="wrap_content"
547                    android:layout_height="wrap_content"
548                    android:orientation="horizontal"
549                    >
550                <TextView
551                        style="@style/FieldTitle"
552                        android:text="setTicker"
553                        />
554                <RadioButton
555                        android:id="@+id/ticker_none"
556                        style="@style/FieldContents"
557                        android:text="none"
558                        android:tag=""
559                        />
560                <RadioButton
561                        android:id="@+id/ticker_short"
562                        style="@style/FieldContents"
563                        android:text="short"
564                        android:tag="tick"
565                        />
566                <RadioButton
567                        android:id="@+id/ticker_wrap"
568                        style="@style/FieldContents"
569                        android:text="wrap"
570                        android:tag="tick tick tick tock tock tock something fun has happened but i don't know what it is just yet"
571                        />
572                <RadioButton
573                        android:id="@+id/ticker_haiku"
574                        style="@style/FieldContents"
575                        android:text="haiku"
576                        android:tag="sholes final approach\nlanding gear punted to flan\nrunway foam glistens"
577                        />
578                <RadioButton
579                        android:id="@+id/ticker_custom"
580                        style="@style/FieldContents.Disabled"
581                        android:text="custom view"
582                        />
583            </RadioGroup>
584            
585
586            <!-- setLargeIcon -->
587            <RadioGroup
588                    android:id="@+id/group_large_icon"
589                    android:layout_width="wrap_content"
590                    android:layout_height="wrap_content"
591                    android:orientation="horizontal"
592                    >
593                <TextView
594                        style="@style/FieldTitle"
595                        android:text="setLargeIcon"
596                        />
597                <RadioButton
598                        android:id="@+id/large_icon_none"
599                        style="@style/FieldContents"
600                        android:text="none"
601                        />
602                <RadioButton
603                        android:id="@+id/large_icon_pineapple"
604                        style="@style/FieldContents"
605                        android:text="pineapple"
606                        />
607            </RadioGroup>
608            
609
610            <!-- setSound -->
611            <RadioGroup
612                    android:id="@+id/group_sound"
613                    android:layout_width="wrap_content"
614                    android:layout_height="wrap_content"
615                    android:orientation="horizontal"
616                    android:visibility="gone"
617                    >
618                <TextView
619                        style="@style/FieldTitle"
620                        android:text="setSound"
621                        />
622                <RadioButton
623                        android:id="@+id/sound_none"
624                        style="@style/FieldContents.Disabled"
625                        android:text="none"
626                        />
627            </RadioGroup>
628            
629
630            <!-- setVibrate -->
631            <RadioGroup
632                    android:id="@+id/group_vibrate"
633                    android:layout_width="wrap_content"
634                    android:layout_height="wrap_content"
635                    android:orientation="horizontal"
636                    >
637                <TextView
638                        style="@style/FieldTitle"
639                        android:text="setVibrate"
640                        />
641                <RadioButton
642                        android:id="@+id/vibrate_none"
643                        style="@style/FieldContents"
644                        android:text="none"
645                        />
646                <RadioButton
647                        android:id="@+id/vibrate_short"
648                        style="@style/FieldContents"
649                        android:text="short"
650                        />
651                <RadioButton
652                        android:id="@+id/vibrate_medium"
653                        style="@style/FieldContents"
654                        android:text="long"
655                        />
656                <RadioButton
657                        android:id="@+id/vibrate_long"
658                        style="@style/FieldContents"
659                        android:text="long"
660                        />
661                <RadioButton
662                        android:id="@+id/vibrate_pattern"
663                        style="@style/FieldContents"
664                        android:text="longer"
665                        />
666            </RadioGroup>
667            
668
669            <!-- setLights -->
670            <RadioGroup
671                    android:id="@+id/group_lights_color"
672                    android:layout_width="wrap_content"
673                    android:layout_height="wrap_content"
674                    android:orientation="horizontal"
675                    >
676                <TextView
677                        style="@style/FieldTitle"
678                        android:text="setLights (color)"
679                        />
680                <RadioButton
681                        android:id="@+id/lights_red"
682                        style="@style/FieldContents"
683                        android:text="red"
684                        android:tag="0xff0000"
685                        />
686                <RadioButton
687                        android:id="@+id/lights_green"
688                        style="@style/FieldContents"
689                        android:text="green"
690                        android:tag="0x00ff00"
691                        />
692                <RadioButton
693                        android:id="@+id/lights_blue"
694                        style="@style/FieldContents"
695                        android:text="blue"
696                        android:tag="0x0000ff"
697                        />
698                <RadioButton
699                        android:id="@+id/lights_cyan"
700                        style="@style/FieldContents"
701                        android:text="cyan"
702                        android:tag="0x00ffff"
703                        />
704                <RadioButton
705                        android:id="@+id/lights_magenta"
706                        style="@style/FieldContents"
707                        android:text="magenta"
708                        android:tag="0xff00ff"
709                        />
710                <RadioButton
711                        android:id="@+id/lights_yellow"
712                        style="@style/FieldContents"
713                        android:text="yellow"
714                        android:tag="0xffff00"
715                        />
716                <RadioButton
717                        android:id="@+id/lights_white"
718                        style="@style/FieldContents"
719                        android:text="white"
720                        android:tag="0xffffff"
721                        />
722            </RadioGroup>
723
724            <!-- setLights -->
725            <RadioGroup
726                    android:id="@+id/group_lights_blink"
727                    android:layout_width="wrap_content"
728                    android:layout_height="wrap_content"
729                    android:orientation="horizontal"
730                    >
731                <TextView
732                        style="@style/FieldTitle"
733                        android:text="setLights (blink)"
734                        />
735                <RadioButton
736                        android:id="@+id/lights_off"
737                        style="@style/FieldContents"
738                        android:text="off"
739                        />
740                <RadioButton
741                        android:id="@+id/lights_slow"
742                        style="@style/FieldContents"
743                        android:text="slow"
744                        />
745                <RadioButton
746                        android:id="@+id/lights_fast"
747                        style="@style/FieldContents"
748                        android:text="fast"
749                        />
750                <RadioButton
751                        android:id="@+id/lights_on"
752                        style="@style/FieldContents"
753                        android:text="on"
754                        />
755            </RadioGroup>
756            
757            <!-- flags -->
758            <LinearLayout
759                    android:layout_width="wrap_content"
760                    android:layout_height="wrap_content"
761                    android:orientation="horizontal"
762                    android:layout_marginTop="12dp"
763                    >
764                <TextView
765                        style="@style/FieldTitle"
766                        android:text="flags"
767                        />
768                <CheckBox
769                        android:id="@+id/flag_ongoing"
770                        style="@style/FieldContents"
771                        android:text="setOngoing"
772                        />
773                <CheckBox
774                        android:id="@+id/flag_once"
775                        style="@style/FieldContents"
776                        android:text="setOnlyAlertOnce"
777                        />
778                <CheckBox
779                        android:id="@+id/flag_auto_cancel"
780                        style="@style/FieldContents"
781                        android:text="setAutoCancel"
782                        />
783            </LinearLayout>
784            
785            <!-- defaults -->
786            <LinearLayout
787                    android:layout_width="wrap_content"
788                    android:layout_height="wrap_content"
789                    android:orientation="horizontal"
790                    >
791                <TextView
792                        style="@style/FieldTitle"
793                        android:text="defaults"
794                        />
795                <CheckBox
796                        android:id="@+id/default_sound"
797                        style="@style/FieldContents"
798                        android:text="sound"
799                        />
800                <CheckBox
801                        android:id="@+id/default_vibrate"
802                        style="@style/FieldContents"
803                        android:text="vibrate"
804                        />
805                <CheckBox
806                        android:id="@+id/default_lights"
807                        style="@style/FieldContents"
808                        android:text="lights"
809                        />
810            </LinearLayout>
811            
812
813
814
815        </LinearLayout>
816    </ScrollView>
817
818
819</LinearLayout>
820