_index.html revision 02e82399ee8e5efe5c836314896e04699a9c8e93
1
2<p>This section includes samples showing the use of the application
3package features of the static support library, in particular fragments
4and loaders.</p>
5<ul>
6  <li><a href="#Fragment">Fragment</a></li>
7  <li><a href="#LoaderManager">LoaderManager</a></li>
8</ul>
9
10
11<h3 id="Fragment">Fragment</h3>
12<dl>
13  <dt><a href="FragmentAlertDialogSupport.html">Fragment Alert Dialog</a></dt>
14  <dd>Demonstrates how to use a DialogFragment to show and manage an
15  AlertDialog.</dd>
16  
17  <dt><a href="FragmentArgumentsSupport.html">Fragment Arguments</a></dt>
18  <dd>Demonstrates how a fragment can be initialized with arguments,
19  supplying them either as an argument Bundle at runtime or XML attributes
20  in a &lt;fragment> tag.</dd>
21  
22  <dt><a href="FragmentContextMenuSupport.html">Fragment Context Menu</a></dt>
23  <dd>Demonstrates how to display and respond to a context menu that is
24  display from a fragment's view hierarchy.</dd>
25  
26  <dt><a href="FragmentDialogSupport.html">Fragment Dialog</a></dt>
27  <dd>Demonstrates use of DialogFragment to show various types of dialogs.</dd>
28  
29  <dt><a href="FragmentDialogOrActivitySupport.html">Fragment Dialog or Activity</a></dt>
30  <dd>Demonstrates how the same Fragment implementation can be used to provide the UI
31  for either an Activity or Dialog.</dd>
32  
33  <dt><a href="FragmentHideShowSupport.html">Fragment Hide Show</a></dt>
34  <dd>Demonstrates hiding and showing fragments.</dd>
35  
36  <dt><a href="FragmentLayoutSupport.html">Fragment Layout</a></dt>
37  <dd>Demonstrates use of the &lt;fragment&gt; tag to embed a Fragment in
38  an Activity's content view layout, and making the layout change based on
39  configuration to achieve different UI flows.</dd>
40  
41  <dt><a href="FragmentListArraySupport.html">Fragment List Array</a></dt>
42  <dd>Demonstrates use of ListFragment to show the contents of a simple ArrayAdapter.</dd>
43  
44  <dt><a href="FragmentMenuSupport.html">Fragment Menu</a></dt>
45  <dd>Demonstrates populating custom menu items from a Fragment.</dd>
46  
47  <dt><a href="FragmentPagerSupport.html">Fragment Pager Support</a></dt>
48  <dd>Demonstrates the use of the support class ViewPager with a
49  FragmentPagerAdapter to build a user interface where the user can fling
50  left or right to switch between fragments.</dd>
51
52  <dt><a href="FragmentStatePagerSupport.html">Fragment State Pager Support</a></dt>
53  <dd>Demonstrates the use of the support class ViewPager with a
54  FragmentStatePagerAdapter to build a user interface where the user can fling
55  left or right to switch between fragments.  This versions of the adapter
56  doesn't keep around the fragment instances that ViewPager has destroyed.</dd>
57
58  <dt><a href="FragmentReceiveResultSupport.html">Fragment Receive Result</a></dt>
59  <dd>Demonstrates starting a new Activity from a Fragment, and receiving
60  a result back from it.</dd>
61  
62  <dt><a href="FragmentRetainInstanceSupport.html">Fragment Retain Instance</a></dt>
63  <dd>Demonstrates a Fragment can be used to easily retain active state across
64  an Activity's configuration change.</dd>
65  
66  <dt><a href="FragmentStackSupport.html">Fragment Stack</a></dt>
67  <dd>Demonstrates creating a stack of Fragment instances similar to the
68  traditional stack of activities.</dd>
69  
70</dl>
71
72<h3 id="LoaderManager">LoaderManager</h3>
73<dl>
74  <dt><a href="LoaderCursorSupport.html">Loader Cursor</a></dt>
75  <dd>Demonstrates use of LoaderManager to perform a query for a Cursor that
76  populates a ListFragment.</dd>
77  
78  <dt><a href="LoaderThrottleSupport.html">Loader Throttle</a></dt>
79  <dd>Complete end-to-end demonstration of a simple content provider that
80  populates data in a list through a cursor loader.  The UI allows the list
81  to be populated with a series of items, showing how AsyncTaskLoader's
82  throttling facility can be used to control how much a Loader is refreshed
83  in this case.</dd>
84</dl>
85