1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
|
<html>
<head>
<link rel="stylesheet" type="text/css" href="assets/style.css" />
<script type="text/javascript" src="http://www.corp.google.com/style/prettify.js"></script>
<script src="http://www.corp.google.com/eng/techpubs/include/navbar.js" type="text/javascript"></script>
</head>
<body>
<p>
Examples of how to use the android.view and android.widget platform APIs.
For information about view and widget objects, see the topic "Designing
the UI for an Android application" in the SDK documentation.
<ol>
<li>Layouts
<ol>
<li>RelativeLayout
<ol>
<li>{@link com.android.samples.view.RelativeLayout1
Example 1}</li>
<li>{@link com.android.samples.view.RelativeLayout2
Example 2}</li>
</ol>
</li>
<li>LinearLayout
<ol>
<li>{@link com.android.samples.view.LinearLayout1
Example 1}</li>
<li>{@link com.android.samples.view.LinearLayout2 Example
2}</li>
<li>{@link com.android.samples.view.LinearLayout3 Example
3}</li>
<li>{@link com.android.samples.view.LinearLayout4 Example
4}</li>
<li>{@link com.android.samples.view.LinearLayout5 Example
5}</li>
<li>{@link com.android.samples.view.LinearLayout6 Example
6}</li>
<li>{@link com.android.samples.view.LinearLayout7 Example
7}</li>
<li>{@link com.android.samples.view.LinearLayout8 Example
8}</li>
</ol>
</li>
<li>ScrollView
<ol>
<li>{@link com.android.samples.view.ScrollView1
Example 1} </li>
<li>{@link com.android.samples.view.ScrollView2 Example
2} </li>
</ol>
</li>
<li>TableLayout
<ol>
<li>{@link com.android.samples.view.TableLayout1
Example 1}</li>
<li>{@link com.android.samples.view.TableLayout2 Example
2}</li>
<li>{@link com.android.samples.view.TableLayout3 Example
3}</li>
<li>{@link com.android.samples.view.TableLayout4 Example
4}</li>
<li>{@link com.android.samples.view.TableLayout5 Example
5}</li>
<li>{@link com.android.samples.view.TableLayout6 Example
6}</li>
<li>{@link com.android.samples.view.TableLayout7 Example
7}</li>
<li>{@link com.android.samples.view.TableLayout8 Example
8}</li>
<li>{@link com.android.samples.view.TableLayout9 Example
9}</li>
<li>{@link com.android.samples.view.TableLayout10 Example
10}</li>
</ol>
</li>
</ol>
</li>
<li>Radio Group
<ol>
<li>{@link com.android.samples.view.RadioGroup1 Example 1}</li>
</ol>
</li>
<li>ScrollBars
<ol>
<li>{@link com.android.samples.view.ScrollBar1 Example 1}</li>
<li>{@link com.android.samples.view.ScrollBar2 Example 2}</li>
</ol>
</li>
<li>Visibility
<ol>
<li>{@link com.android.samples.view.Visibility1 Example 1}</li>
</ol>
</li>
<li>Lists
<ol>
<li>{@link com.android.samples.view.List1 Example 1} </li>
<li>{@link com.android.samples.view.List2 Example 2}</li>
<li>{@link com.android.samples.view.List3 Example 3}</li>
<li>{@link com.android.samples.view.List4 Example 4}</li>
<li>{@link com.android.samples.view.List5 Example 5}</li>
<li>{@link com.android.samples.view.List6 Example 6}</li>
<li>{@link com.android.samples.view.List7 Example 7}</li>
</ol>
</li>
<li>Custom
<ol>
<li>{@link com.android.samples.view.CustomView1 Example 1}</li>
</ol>
</li>
<li>Gallery
<ol>
<li>{@link com.android.samples.view.Gallery1 Example 1}</li>
<li>{@link com.android.samples.view.Gallery2 Example 2}</li>
</ol>
</li>
<li>Spinner
<ol>
<li>{@link com.android.samples.view.Spinner1 Example 1}</li>
</ol>
</li>
<li>Grid
<ol>
<li>{@link com.android.samples.view.Grid1 Example 1}</li>
</ol>
</li>
<li>ImageSwitcher
<ol>
<li>{@link com.android.samples.view.ImageSwitcher1 Example
1}</li>
</ol>
</li>
<li>Animation
<ol>
<li>{@link com.android.samples.view.Animation1 Example 1}</li>
<li>{@link com.android.samples.view.Animation2 Example 1}</li>
</ol>
</li>
<li>Controls
<ol>
<li>{@link com.android.samples.view.Controls1 Example 1}</li>
</ol>
</li>
</ol>
<p></p>
<h3>LinearLayout Example 1: Stacking Views</h3>
This example shows a simple use of a LinearLayout. The LinearLayout's height is set to
<code>android:layout_height="wrap-content"</code>,
as is the height of each child. Each text view is as tall as it needs
to be, and the height of the LinearLayout itself is the sum of the height of its children.
<h4>Demo</h4>
Views/Layouts/LinearLayout/Example 1
<h4>Source files</h4>
<table class="LinkTable">
<tr>
<td class="LinkColumn"><a href="" onClick="findCode(this)">//device/samples/SampleCode/src/com/android/sdk/view/LinearLayout1.java</a></td>
<td class="DescrColumn">Loads the linear_layout_1 layout resource</td>
</tr>
<tr>
<td class="LinkColumn"><a href="" onClick="findCode(this)">//device/samples/SampleCode/assets/res/any/layout/linear_layout_1.xml</a></td>
<td class="DescrColumn">Defines the layout</td>
</tr>
<tr>
<td class="LinkColumn"><a href="" onClick="findCode(this)">//device/samples/SampleCode/AndroidManifest.xml</a></td>
<td class="DescrColumn">Defines the activity</td>
</tr>
</table>
<h3>LinearLayout Example 2: Stacking Views Again</h3>
In this example, the LinearLayout's height is set
to <code>android:layout_height="fill-parent"</code>,
so the LinearLayout fills the screen. Each text view is as tall as it needs
to be, so the LinearLayout just stacks them from top to bottom.
<h4>Demo</h4>
Views/Layouts/LinearLayout/Example 2
<h4>Source files</h4>
<table class="LinkTable">
<tr>
<td class="LinkColumn"><a href="" onClick="findCode(this)">//device/samples/SampleCode/src/com/android/sdk/view/LinearLayout2.java</a></td>
<td class="DescrColumn">Loads the linear_layout_2 layout resource</td>
</tr>
<tr>
<td class="LinkColumn"><a href="" onClick="findCode(this)">//device/samples/SampleCode/assets/res/any/layout/linear_layout_2.xml</a></td>
<td class="DescrColumn">Defines the layout</td>
</tr>
<tr>
<td class="LinkColumn"><a href="" onClick="findCode(this)">//device/samples/SampleCode/AndroidManifest.xml</a></td>
<td class="DescrColumn">Defines the activity</td>
</tr>
</table>
<h3>LinearLayout Example 3: Distributing Extra Space</h3>
In this example, the LinearLayout's height is set
to "fill-parent", so the LinearLayout fills the screen. Each text view is as tall as it needs
to be. However, the middle text view has set <code>android:layout_weight="1"</code>. This means that it
will get all of the extra space left over after the LinearLayout has sized all of its children.
<h4>Demo</h4>
Views/Layouts/LinearLayout/Example 3
<h4>Source files</h4>
<table class="LinkTable">
<tr>
<td class="LinkColumn"><a href="" onClick="findCode(this)">//device/samples/SampleCode/src/com/android/sdk/view/LinearLayout3.java</a></td>
<td class="DescrColumn">Loads the linear_layout_3 layout resource</td>
</tr>
<tr>
<td class="LinkColumn"><a href="" onClick="findCode(this)">//device/samples/SampleCode/assets/res/any/layout/linear_layout_3.xml</a></td>
<td class="DescrColumn">Defines the layout</td>
</tr>
<tr>
<td class="LinkColumn"><a href="" onClick="findCode(this)">//device/samples/SampleCode/AndroidManifest.xml</a></td>
<td class="DescrColumn">Defines the activity</td>
</tr>
</table>
<h3>LinearLayout Example 4: Columns</h3>
This time, the orientation of the LinearLayout is set to horizontal.
Each of the four child text views has set <code>android:layout_weight="1"</code>
and <code>android:layout_width="0"</code>.
This means that each child is initially given a width of 0, and then all of the
remaining space (the width of the screen) is divided equally among the four
views.
<h4>Demo</h4>
Views/Layouts/LinearLayout/Example 4
<h4>Source files</h4>
<table class="LinkTable">
<tr>
<td class="LinkColumn"><a href="" onClick="findCode(this)">//device/samples/SampleCode/src/com/android/sdk/view/LinearLayout4.java</a></td>
<td class="DescrColumn">Loads the linear_layout_4 layout resource</td>
</tr>
<tr>
<td class="LinkColumn"><a href="" onClick="findCode(this)">//device/samples/SampleCode/assets/res/any/layout/linear_layout_4.xml</a></td>
<td class="DescrColumn">Defines the layout</td>
</tr>
<tr>
<td class="LinkColumn"><a href="" onClick="findCode(this)">//device/samples/SampleCode/AndroidManifest.xml</a></td>
<td class="DescrColumn">Defines the activity</td>
</tr>
</table>
<h3>LinearLayout Example 5: A Simple Form</h3>
This is a more complete example. It shows:
<ul>
<li>Using nested LinearLayouts (a horizontal layout inside a vertical layout)
<li>Using padding on the outer layout
<li>Using the <code>layout_gravity</code> attribute to position the horizontal layout
on the right side of the screen
<li>Using a margin to put some space between buttons
</ul>
<h4>Demo</h4>
Views/Layouts/LinearLayout/Example 5
<h4>Source files</h4>
<table class="LinkTable">
<tr>
<td class="LinkColumn"><a href="" onClick="findCode(this)">//device/samples/SampleCode/src/com/android/sdk/view/LinearLayout5.java</a></td>
<td class="DescrColumn">Loads the linear_layout_5 layout resource</td>
</tr>
<tr>
<td class="LinkColumn"><a href="" onClick="findCode(this)">//device/samples/SampleCode/assets/res/any/layout/linear_layout_5.xml</a></td>
<td class="DescrColumn">Defines the layout</td>
</tr>
<tr>
<td class="LinkColumn"><a href="" onClick="findCode(this)">//device/samples/SampleCode/AndroidManifest.xml</a></td>
<td class="DescrColumn">Defines the activity</td>
</tr>
</table>
<h3>RelativeLayout Example 1: Stretching</h3>
There are three views in this example. The first view (view1) is pinned to the top of the screen through the use of this
attribute: <code>android:layout_alignParentTop="true"</code>.
The second view (view2) is pinned to the bottom of the screen: <code>android:layout_alignParentBottom="true"</code>.
This demonstrates how views can be positioned relative to the RelativeLayout itself.
<p>Views can also be positioned relative to each other as well. In this example, view3 is below view1 and above
view2: <code>android:layout_above="view2" android:layout_below="view1"</code>. This has the effect of making
view3 stretch between view1 and view2.</p>
<p>Note that since view3 depends on the positions of both view1 and view2, it is defined after them in the layout
file.</p>
<h4>Demo</h4>
Views/Layouts/RelativeLayout/Example 1
<h4>Source files</h4>
<table class="LinkTable">
<tr>
<td class="LinkColumn"><a href="" onClick="findCode(this)">//device/samples/SampleCode/src/com/android/sdk/view/RelativeLayout1.java</a></td>
<td class="DescrColumn">Loads the relative_layout_1 layout resource</td>
</tr>
<tr>
<td class="LinkColumn"><a href="" onClick="findCode(this)">//device/samples/SampleCode/assets/res/any/layout/relative_layout_1.xml</a></td>
<td class="DescrColumn">Defines the layout</td>
</tr>
<tr>
<td class="LinkColumn"><a href="" onClick="findCode(this)">//device/samples/SampleCode/AndroidManifest.xml</a></td>
<td class="DescrColumn">Defines the activity</td>
</tr>
</table>
<h3>RelativeLayout Example 2: A Simple Form Revisited</h3>
The form created in LinearLayout Example 5 is recreated using a RelativeLayout. This example demonstrates:
<ul>
<li>Using padding on the outer layout
<li>Positioning views realtive to one another using the <code>android:layout_below</code> and
<code>android:layout_below</code> and <code>android:layout_toLeft<code> attributes.
<li>Aligning the top edges of the buttons with the <code>android:layout_alignTop<code> attribute
<li>Right-aligning the OK button with <code>android:layout_alignParentRight</code>
<li>Using a margin to put some space between buttons
</ul>
<h4>Demo</h4>
Views/Layouts/RelativeLayout/Example 2
<h4>Source files</h4>
<table class="LinkTable">
<tr>
<td class="LinkColumn"><a href="" onClick="findCode(this)">//device/samples/SampleCode/src/com/android/sdk/view/RelativeLayout2.java</a></td>
<td class="DescrColumn">Loads the relative_layout_2 layout resource</td>
</tr>
<tr>
<td class="LinkColumn"><a href="" onClick="findCode(this)">//device/samples/SampleCode/assets/res/any/layout/relative_layout_2.xml</a></td>
<td class="DescrColumn">Defines the layout</td>
</tr>
<tr>
<td class="LinkColumn"><a href="" onClick="findCode(this)">//device/samples/SampleCode/AndroidManifest.xml</a></td>
<td class="DescrColumn">Defines the activity</td>
</tr>
</table>
<h3>Scrolling Example 1</h3>
All of the layout classes discussed above do not scroll.
They simply arrange their children within whatever space is made available to them.
<p>The ScrollView is used to implement vertical scrolling. It does not display any
content of its own. Instead, it assumes it has one child and pans up and down to keep
the interesting area of its child in view.</p>
<p>In this example, a ScrollView is used to wrap a LinearLayout. The LinearLayout
in turn contains a stack of TextViews and Buttons. The ScrollView is as wide as
the screen (<code>android:layout_width="fill-parent"</code>) and tall enough to
wrap the LinearLayout (<code>android:layout_height="wrap-content"</code>). The
LinearLayout uses the same parameters, so it is also as wide as the screen and is as
tall as the sum of the heigts of all of its children.</p>
<h4>Demo</h4>
Views/Layouts/ScrollView/Example 1
<h4>Source files</h4>
<table class="LinkTable">
<tr>
<td class="LinkColumn"><a href="" onClick="findCode(this)">//device/samples/SampleCode/src/com/android/sdk/view/ScrollView1.java</a></td>
<td class="DescrColumn">Loads the scroll_view_1 layout resource</td>
</tr>
<tr>
<td class="LinkColumn"><a href="" onClick="findCode(this)">//device/samples/SampleCode/assets/res/any/layout/scroll_view_1.xml</a></td>
<td class="DescrColumn">Defines the layout</td>
</tr>
<tr>
<td class="LinkColumn"><a href="" onClick="findCode(this)">//device/samples/SampleCode/AndroidManifest.xml</a></td>
<td class="DescrColumn">Defines the activity</td>
</tr>
</table>
<h2><a name="Lists">Lists</a></h2>
<h3>ListView Example 1: A "Hello World" List</h3>
ListViews are used to display vertically scrolling list of information. Unlike the ScrollView, which pans up and
down through a set of views that have already been built, the ListView is "virtualized", meaning that views are
created only as necessary in order to display what is actually on the screen. ListViews can thus be used to
efficiently display very large sets of data. (In this example, the list displays over 600 kinds of cheese.)
<p>ListViews are highly customizable: you can change where the underlying data comes from, the internal
representation of the data, and the Views that are used to display the data on the screen. All of this is
done with a ListAdapter class. The Android platform includes some ListAdapters that are ready to use, or
you can make your own to display custom information. (See ListView Example 4 and ListView Example 5.)</p>
<p>This example uses an existing ListAdapter called ArrayListAdapter. This adapter uses generics to map
an array of objects to TextViews. In this case we are using an array of Strings.</p>
<p>Note that this example does not have a layout file. This is because the List1 class derives from
ListScreen, which will provide a default layout if your activity does not provide an override.</p>
<h4>Demo</h4>
Views/Lists/Example 1
<h4>Source files</h4>
<table class="LinkTable">
<tr>
<td class="LinkColumn"><a href="" onClick="findCode(this)">//device/samples/SampleCode/src/com/android/sdk/view/List1.java</a></td>
<td class="DescrColumn">Contains code for the List1 class</td>
</tr>
<tr>
<td class="LinkColumn"><a href="" onClick="findCode(this)">//device/samples/SampleCode/AndroidManifest.xml</a></td>
<td class="DescrColumn">Defines the activity</td>
</tr>
</table>
<h3>ListView Example 2: Displaying Data from a Cursor </h3>
It is very common to display data from a database in a ListView. The easiest way to do this is to use a
SimpleCursorListAdapter. This is a class that will get data from a Cursor and display the data in
each row in Views defined in an XML template.
<p>In this example, the SimpleCursorListAdapter is provided with a cursor that contains a list of all
people. Each row will be displayed using the Views defined in this XL file:
<a href="" onClick="findCode(this)">//device/apps/common/assets/res/any/layout/simple_list_item_1.xml</a>.
</p>
<p>When creating a SimpleCursorListAdapter, you also provide a mapping from column names in the
Cursor to view ids in the template file. In this case we are mapping the People.NAME column to the
"text1" TextView.
</p>
<h4>Demo</h4>
Views/Lists/Example 2
<h4>Source files</h4>
<table class="LinkTable">
<tr>
<td class="LinkColumn"><a href="" onClick="findCode(this)">//device/samples/SampleCode/src/com/android/sdk/view/List2.java</a></td>
<td class="DescrColumn">Contains code for the List2 class</td>
</tr>
<tr>
<td class="LinkColumn"><a href="" onClick="findCode(this)">//device/apps/common/assets/res/any/layout/simple_list_item_1.xml</a></td>
<td class="DescrColumn">Defines the XML template used for each row.
(Note that this file is provided as part of the Android platform.)</td>
</tr>
<tr>
<td class="LinkColumn"><a href="" onClick="findCode(this)">//device/samples/SampleCode/AndroidManifest.xml</a></td>
<td class="DescrColumn">Defines the activity</td>
</tr>
</table>
<h3>ListView Example 3: Displaying Data from a Cursor, Fancier Version </h3>
This example extends the idea presented in Example 2. Instead of just presenting a list of names, though,
it shows two lines of information for the selected item (name and phone number). It shows just the name for unselected items.
<p>
This example still uses a SimpleCursorListAdapter, but changes the following:</p>
<ul>
<li>The Cursor now contains all phone numbers
<li>It uses a different template for each row: <a href="" onClick="findCode(this)">//device/apps/common/assets/res/any/layout/simple_list_item_2.xml</a>
<li>Since simple_list_item_2.xml contains two views, were mapping two columns
<code>{ Phones.NAME, Phones.NUMBER }</code> to the two views
<code>{ "text1", "text2"}</code>
<li>The simple_list_item_2.xml uses a TwoLineListItem view, which is a subclass of LinearLayout that knows to only show
the second item when it is selected.
</ul>
<h4>Demo</h4>
Views/Lists/Example 3
<h4>Source files</h4>
<table class="LinkTable">
<tr>
<td class="LinkColumn"><a href="" onClick="findCode(this)">//device/samples/SampleCode/src/com/android/sdk/view/List3.java</a></td>
<td class="DescrColumn">Contains code for the List3 class</td>
</tr>
<tr>
<td class="LinkColumn"><a href="" onClick="findCode(this)">//device/apps/common/assets/res/any/layout/simple_list_item_2.xml</a></td>
<td class="DescrColumn">Defines the XML template used for each row.
(Note that this file is provided as part of the Android platform.)</td>
</tr>
<tr>
<td class="LinkColumn"><a href="" onClick="findCode(this)">//device/samples/SampleCode/AndroidManifest.xml</a></td>
<td class="DescrColumn">Defines the activity</td>
</tr>
</table>
<h3>ListView Example 4: Writing a Custom ListAdapter </h3>
The previous examples all used standard ListAdapters. It is also possible to write your own ListAdapters
to access data from custom sources.
<p>
This example introduces a SongListAdapter, which gets its data from an array of titles and an array of lyrics.
The SongListAdapter then produces a SongView which is capable of displaying this data.
</p>
<p>
This example also shows how the ListView handles scrolling large items.
<h4>Demo</h4>
Views/Lists/Example 4
<h4>Source files</h4>
<table class="LinkTable">
<tr>
<td class="LinkColumn"><a href="" onClick="findCode(this)">//device/samples/SampleCode/src/com/android/sdk/view/List4.java</a></td>
<td class="DescrColumn">Contains code for the List4 class, along with a custom ListAdapter and custom View to display the data.</td>
</tr>
<tr>
<td class="LinkColumn"><a href="" onClick="findCode(this)">//device/samples/SampleCode/AndroidManifest.xml</a></td>
<td class="DescrColumn">Defines the activity</td>
</tr>
</table>
<h3>ListView Example 5: List Separators </h3>
ListView supports the concept of non-selectable "separators" between items. The ListView delegated to its ListAdapter the
task of deciding whether a given position in the list is a separator or selectable data.
<p><i>This example needs some cleanup.</i></p>
<h4>Demo</h4>
Views/Lists/Example 5
<h4>Source files</h4>
<table class="LinkTable">
<tr>
<td class="LinkColumn"><a href="" onClick="findCode(this)">//device/samples/SampleCode/src/com/android/sdk/view/List5.java</a></td>
<td class="DescrColumn">Contains code for the List5 class, along with a custom ListAdapter.</td>
</tr>
<tr>
<td class="LinkColumn"><a href="" onClick="findCode(this)">//device/samples/SampleCode/AndroidManifest.xml</a></td>
<td class="DescrColumn">Defines the activity</td>
</tr>
</table>
<h2><a name="Working">Working with Views</a></h2>
<h3>Custom View Example 1: LabelView</h3>
<p>
Note: This example does not support multi-line or right-to-left text. It is sample code only
and should not be used in place of the TextView.
</p>
<h4>Demo</h4>
Views/Custom/Example 1
<h4>Source files</h4>
<table class="LinkTable">
<tr>
<td class="LinkColumn"><a href="" onClick="findCode(this)">//device/samples/SampleCode/src/com/android/sdk/view/CustomView1.java</a></td>
<td class="DescrColumn">Loads the custom_view_3 layout resource</td>
</tr>
<tr>
<td class="LinkColumn"><a href="" onClick="findCode(this)">//device/samples/SampleCode/src/com/android/sdk/view/LabelView.java</a></td>
<td class="DescrColumn">Implementation of the custom view</td>
</tr>
<tr>
<td class="LinkColumn"><a href="" onClick="findCode(this)">//device/samples/SampleCode/assets/res/any/layout/custom_view_1.xml</a></td>
<td class="DescrColumn">Defines a layout that uses LabelViews</td>
</tr>
<tr>
<td class="LinkColumn"><a href="" onClick="findCode(this)">//device/samples/SampleCode/AndroidManifest.xml</a></td>
<td class="DescrColumn">Defines the activity</td>
</tr>
</table>
</body>
</html>
|