Home | History | Annotate | Download | only in view
      1 <h3>RelativeLayout</h3>
      2 <dl>
      3   <dt><a href="RelativeLayout1.html">1. Vertical</a></dt>
      4   <dd>Demonstrates a simple relative layout.</dd>
      5 
      6   <dt><a href="RelativeLayout2.html">2. Simple Form</a></dt>
      7   <dd>Demonstrates a more complex relative layout to create a form. </dd>
      8 </dl>
      9 
     10 <h3>LinearLayout</h3>
     11 <dl>
     12   <dt><a href="LinearLayout1.html">1. Vertical</a></dt>
     13   <dd>Demonstrates a simple LinearLayout, with child width set to WRAP_CONTENT. </dd>
     14 
     15   <dt><a href="LinearLayout2.html">2. Vertical (Fill Screen)</a></dt>
     16   <dd>Demonstrates a simple LinearLayout, with child width set to MATCH_PARENT.</dd>
     17 
     18   <dt><a href="LinearLayout3.html">3. Vertical (Padded)</a></dt>
     19   <dd>Demonstrates a LinearLayout where one of the elements can expand to fill any remaining screen space (weight=1). </dd>
     20 
     21   <dt><a href="LinearLayout4.html">4. Horizontal</a></dt>
     22   <dd>Demonstrates a horizontal LinearLayout, plus an expanding column. </dd>
     23 
     24   <dt><a href="LinearLayout5.html">5. Simple Form</a></dt>
     25   <dd>Demonstrates nested layouts to create a user form.</dd>
     26 
     27   <dt><a href="LinearLayout6.html">6. Uniform Size</a></dt>
     28   <dd>LinearLayout which uses a combination of wrap_content on itself and match_parent on its children to get every item to be the same width.</dd>
     29 
     30   <dt><a href="LinearLayout7.html">7. Fill Parent</a></dt>
     31   <dd>Demonstrates a horizontal linear layout with equally sized columns. Some columns force their height to match the parent.</dd>
     32 
     33   <dt><a href="LinearLayout8.html">8. Gravity</a></dt>
     34   <dd>Demonstrates a simple linear layout with menu options demonstrating horizontal and vertical gravity options.</dd>
     35 
     36   <dt><a href="LinearLayout9.html">9. Layout Weight</a></dt>
     37   <dd> Demonstrates how the layout_weight attribute can shrink an element too big to fit on screen.</dd>
     38 
     39 </dl>
     40 
     41 <h3>ScrollView</h3>
     42 <dl>
     43   <dt><a href="ScrollView1.html">1. Short</a></dt>
     44   <dd>Demonstrates scrolling screen with buttons altermating with a text view. </dd>
     45 
     46   <dt><a href="ScrollView2.html">2. Long</a></dt>
     47   <dd>Demonstrates a longer scrolling screen similar to ScrollView1. </dd>
     48 </dl>
     49 
     50 <h3>TableLayout</h3>
     51 <dl>
     52   <dt><a href="TableLayout1.html">1. Basic</a></dt>
     53   <dd>Demonstrates a basic TableLayout with identical children. </dd>
     54   
     55   <dt><a href="TableLayout2.html">2. Empty Cells</a></dt>
     56   <dd>Demonstrates a TableLayout with column-spanning rows and different child objects. </dd>
     57   
     58   <dt><a href="TableLayout3.html">3. Long Content</a></dt>
     59   <dd>Rows have different number of columns and content doesn't fit on screen: column 4 of row 2 shrinks all of the other columns </dd>
     60   
     61   <dt><a href="TableLayout4.html">4. Stretchable</a></dt>
     62   <dd>Demonstrates a TableLayout with a stretchable column. </dd>
     63 
     64   <dt><a href="TableLayout5.html">5. Spanning and Stretchable</a></dt>
     65   <dd>Demonstrates a complex TableLayout with spanning columns and stretchable columns to create a menu-like layout. </dd>
     66 
     67   <dt><a href="TableLayout6.html">6. More Spanning and Stretchable</a></dt>
     68   <dd>Similar to example 5, but with an additional &quot;checked&quot; column. </dd>
     69 
     70   <dt><a href="TableLayout7.html">7. Column Collapse</a></dt>
     71   <dd>Similar to example 6, but now with buttons on the bottom of the screen that enable you dynamically hide or show columns. </dd>
     72 
     73   <dt><a href="TableLayout8.html">8. Toggle Stretch</a></dt>
     74   <dd>Demonstrates toggling the &quot;stretch&quot; value on a column to fill the screen width. </dd>
     75 
     76   <dt><a href="TableLayout9.html">9. Toggle Shrink</a></dt>
     77   <dd>Demonstrates toggling the &quot;shrink&quot; value on a column to make an over-wide table shrink to fit the screen size. </dd>
     78 
     79   <dt><a href="TableLayout10.html">10. Simple Form</a></dt>
     80   <dd>Demonstrates using a table to design a user form. </dd>
     81 
     82   <dt><a href="TableLayout11.html">11. Gravity</a></dt>
     83   <dd>Demonstrates the use of advanced gravity attributes, such as <em>center_horizontal</em> and <em>right|bottom</em>                to align cell contents in a table. </dd>
     84 
     85   <dt><a href="TableLayout12.html">12. Various Widths</a></dt>
     86   <dd>Demonstrates the use of elements of various widths in a table. </dd>
     87 </dl>
     88 
     89 <h3>Baseline</h3>
     90 <p>Demonstrates the use of the <em>android:layout_alignBaseline</em> XML attribute in various page layouts.</p>
     91 <dl>
     92   <dt><a href="Baseline1.html">1. Top</a></dt>
     93   <dd>Demonstrates the default baseline alignment in a simple LinearLayout with items at the top of the screen. </dd>
     94 
     95   <dt><a href="Baseline2.html">2. Bottom</a></dt>
     96   <dd>Demonstrates the default baseline alignment in a simple LinearLayout with items at the bottom of the screen.</dd>
     97 
     98   <dt><a href="Baseline3.html">3. Center</a></dt>
     99   <dd>Demonstrates the default baseline alignment in a simple LinearLayout with items in the center of the screen.</dd>
    100 
    101   <dt><a href="Baseline4.html">4. Everywhere</a></dt>
    102   <dd>Demonstrates the default baseline alignment in a complex LinearLayout.</dd>
    103 
    104   <dt><a href="Baseline6.html">6. Multi-line</a></dt>
    105   <dd>Demonstrates a baseline alignment with a multiline field. </dd>
    106 
    107   <dt><a href="Baseline7.html">7. Relative</a></dt>
    108   <dd>Demonstrates baseline alignment in a RelativeLayout. </dd>
    109 
    110   <dt><a href="BaselineNested1.html">BaselineNested1</a></dt>
    111   <dd>Demonstrates baseline aligning specific elements in three parallel vertical LinearLayout objects.</dd>
    112 
    113   <dt><a href="BaselineNested2.html">BaselineNested2</a></dt>
    114   <dd>Demonstrates baseline aligning specific elements in three mixed vertical and horizontal LinearLayout objects.</dd>
    115   
    116   <dt><a href="BaselineNested3.html">BaselineNested3</a></dt>
    117   <dd>Demonstrates baseline alignment within nested LinearLayout objects. </dd>
    118 </dl>
    119 
    120 <h3>Radio Group</h3>
    121 <dl>
    122   <dt><a href="RadioGroup1.html">Radio Group</a></dt>
    123   <dd>Demonstrates using radio buttons and capturing the selected item. </dd>
    124 </dl>
    125 
    126 <h3>ScrollBars</h3>
    127 <dl>
    128   <dt><a href="ScrollBar1.html">1. Basic</a></dt>
    129   <dd>Demonstrates a scrollable LinearLayout object. </dd>
    130 
    131   <dt><a href="ScrollBar2.html">2. Fancy</a></dt>
    132   <dd>Demonstrates a scrollable LinearLayout object with a custom thumb slider image. </dd>
    133 </dl>
    134 
    135 <h3>Visibility</h3>
    136 <dl>
    137   <dt><a href="Visibility1.html">Visibility</a></dt>
    138   <dd>Demonstrates toggling the visibility of a View object between visible, invisible, and gone. </dd>
    139 </dl>
    140 
    141 <h3>Lists</h3>
    142 <dl>
    143   <dt><a href="List1.html">1. Array</a></dt>
    144   <dd> Demonstrates binding a ListAdapter to a string array as a data source, and displaying the elements on the screen. </dd>
    145   
    146   <dt><a href="List2.html">2. Cursor (People)</a></dt>
    147   <dd> Demonstrates binding results from a database query to a field in a template. </dd>
    148   
    149   <dt><a href="List3.html">3. Cursor (Phones)</a></dt>
    150   <dd> Demonstrates binding multiple columns from a database query to fields in a template. </dd>
    151   
    152   <dt><a href="List4.html">4. ListAdapter</a></dt>
    153   <dd> Demonstrates implementing a custom ListAdapter to return View objects laid out in a custom manner. </dd>
    154   
    155   <dt><a href="List5.html">5. Separators</a></dt>
    156   <dd> Demonstrates implementing a custom ListAdapter that includes separators between some items. </dd>
    157   
    158   <dt><a href="List6.html">6. ListAdapter Collapsed</a></dt>
    159   <dd>Demonstrates another custom list adapter with that returns expandible items. </dd>
    160   
    161   <dt><a href="List7.html">7. Cursor (Phones)</a></dt>
    162   <dd> Demonstrates a list adapter where data comes from a Cursor object. </dd>
    163   
    164   <dt><a href="List8.html">8. Photos</a></dt>
    165   <dd> Demonstrates a list activity that uses a custom ListAdapter, setting the view for an empty item, and also how to customize the layout of a ListActivity. </dd>
    166 </dl>
    167 
    168 
    169 
    170 <h3>Custom</h3>
    171 <dl>
    172   <dt><a href="CustomView1.html">CustomView</a></dt>
    173   <dd>Demonstrates implementing a custom view subclass. </dd>
    174 </dl>
    175 
    176 <h3>ImageButton</h3>
    177 <dl>
    178   <dt><a href="ImageButton1.html">ImageButton</a></dt>
    179   <dd>Demonstrates an ImageButton: a button with an arbitrary graphic on it. </dd>
    180 </dl>
    181 
    182 <h3>Date Widgets</h3>
    183 <dl>
    184   <dt><a href="DateWidgets1.html">1. Dialog</a></dt>
    185   <dd>Demonstrates the DatePickerDialog and TimePickerDialog picker dialogs.</dd>
    186 
    187   <dt><a href="DateWidgets2.html">2. Inline</a></dt>
    188   <dd>Demonstrates using a TimePicker directly in a layout without using a confirmation button or dialog.</dd>
    189 </dl>
    190 
    191 <h3>Gallery</h3>
    192 <dl>
    193   <dt><a href="Gallery1.html">1. Icons</a></dt>
    194   <dd> Demonstrates implementing a Gallery widget and extending GalleryAdapter to create a custom class to serve out source images to the widget. </dd>
    195   
    196   <dt><a href="Gallery2.html">2. People</a></dt>
    197   <dd>Demonstrates populating a Gallery with images from the contacts photos. </dd>
    198 </dl>
    199 
    200 <h3>Spinner</h3>
    201 <dl>
    202   <dt><a href="Spinner1.html">Spinner</a></dt>
    203   <dd> Demonstrates populating two Spinner widgets with values. </dd>
    204 </dl>
    205 
    206 <h3>Grid</h3>
    207 <dl>
    208   <dt><a href="Grid1.html">1. Icon Grid</a></dt>
    209   <dd> Demonstrates populating a GridView widget with a list of applications using a custom ListAdapter object.</dd>
    210 
    211   <dt><a href="Grid2.html">2. Photo Grid</a></dt>
    212   <dd> Demonstrates populating a GridView widget with images using a custom ListAdapter object. </dd>
    213 </dl>
    214 
    215 <h3>ImageSwitcher</h3>
    216 <dl>
    217   <dt><a href="ImageSwitcher1.html">ImageSwitcher</a></dt>
    218   <dd>Demonstrates using the ImageSwitcher widget with a custom Adapter.</dd>
    219 </dl>
    220 
    221 <h3>TextSwitcher</h3>
    222 <dl>
    223   <dt><a href="TextSwitcher1.html">TextSwitcher</a></dt>
    224   <dd>Demonstrates using the TextSwitcher widget. </dd>
    225 </dl>
    226 
    227 <h3>Animation</h3>
    228 <dl>
    229   <dt><a href="Animation1.html">1. Shake</a></dt>
    230   <dd>Demonstrates a simple tweened animation (android.view.animation.Animation). </dd>
    231 
    232   <dt><a href="Animation2.html">2. Push</a></dt>
    233   <dd>Demonstrates a variety of transformations (android.view.animation.Animation), including fading, motion, and rotation. </dd>
    234 </dl>
    235 
    236 <h3>Controls</h3>
    237 <dl>
    238   <dt><a href="Controls1.html">1. Theme White</a></dt>
    239   <dd>Demonstrates a variety of common form type widgets, such as check boxes and radio buttons using the white theme. </dd>
    240 </dl>
    241 <dl>
    242   <dt><a href="Controls2.html">2. Theme Dark</a></dt>
    243   <dd>Demonstrates a variety of common form type widgets, such as check boxes and radio buttons using the dark theme. </dd>
    244 </dl>
    245 
    246 <h3>Auto Complete</h3>
    247 <dl>
    248   <dt><a href="AutoComplete1.html">1. Screen Top</a></dt>
    249   <dd>Demonstrates the use of AutoCompleteTextView, an autocomplete dropdown box below a text box, with data taken from an array. </dd>
    250 
    251   <dt><a href="AutoComplete2.html">2. Screen Bottom</a></dt>
    252   <dd>Demonstrates an autocomplete box above a text box.</dd>
    253 
    254   <dt><a href="AutoComplete3.html">3. Scroll</a></dt>
    255   <dd>Demonstrates an autocomplete text box in the midst of a vertical list. </dd>
    256 
    257   <dt><a href="AutoComplete4.html">4. Contacts</a></dt>
    258   <dd>Demonstrates an autocomplete text box that gets its content from a database query. </dd>
    259   
    260   <dt><a href="AutoComplete5.html">5. Contacts with Hint</a></dt>
    261   <dd>Demonstates an autocomplete text box that understands the * wildcard. </dd>
    262 </dl>
    263 
    264 <h3>Progress Bar</h3>
    265 <dl>
    266   <dt><a href="ProgressBar1.html">1. Incremental</a></dt>
    267   <dd>Demonstrates large and small rotating progress indicators that can be incremented or decremented in units. </dd>
    268 
    269   <dt><a href="ProgressBar2.html">2. Smooth</a></dt>
    270   <dd>Demonstrates large and small continuously rotating progress indicators used to indicate a generic &quot;busy&quot; message. </dd>
    271 
    272   <dt><a href="ProgressBar3.html">3. Dialogs</a></dt>
    273   <dd>Demonstrates a ProgressDialog, a popup dialog that hosts a progress bar. This example demonstrates both determinate and indeterminate progress indicators. </dd>
    274 
    275   <dt><a href="ProgressBar4.html">4. In Title Bar</a></dt>
    276   <dd>Demonstrates an Activity screen with a progress indicator loaded by setting the WindowPolicy's progress indicator feature. </dd>
    277 </dl>
    278 
    279 <h3>Focus</h3>
    280 <dl>
    281   <dt><a href="Focus1.html">1. Vertical</a></dt>
    282   <dd>Demonstrates how to block selection of a specific screen element. </dd>
    283 
    284   <dt><a href="Focus2.html">2. Horizontal</a></dt>
    285   <dd>Demonstrates how to change the order of which screen element is selected when the user presses arrow keys. </dd>
    286   
    287   <dt><a href="Focus3.html">3. Circular</a></dt>
    288   <dd>Another version of Focus2. </dd>
    289 </dl>
    290