Home | History | Annotate | Download | only in app
      1 
      2 <p>This section includes samples showing the use of the application
      3 package features of the static support library, in particular fragments
      4 and 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="FragmentCustomAnimationSupport.html">Fragment Custom Animation</a></dt>
     27   <dd>Demonstrates the use of a custom animation for pushing and popping fragments
     28   on the back stack.</dd>
     29 
     30   <dt><a href="FragmentDialogSupport.html">Fragment Dialog</a></dt>
     31   <dd>Demonstrates use of DialogFragment to show various types of dialogs.</dd>
     32   
     33   <dt><a href="FragmentDialogOrActivitySupport.html">Fragment Dialog or Activity</a></dt>
     34   <dd>Demonstrates how the same Fragment implementation can be used to provide the UI
     35   for either an Activity or Dialog.</dd>
     36   
     37   <dt><a href="FragmentHideShowSupport.html">Fragment Hide Show</a></dt>
     38   <dd>Demonstrates hiding and showing fragments.</dd>
     39   
     40   <dt><a href="FragmentLayoutSupport.html">Fragment Layout</a></dt>
     41   <dd>Demonstrates use of the &lt;fragment&gt; tag to embed a Fragment in
     42   an Activity's content view layout, and making the layout change based on
     43   configuration to achieve different UI flows.</dd>
     44   
     45   <dt><a href="FragmentListArraySupport.html">Fragment List Array</a></dt>
     46   <dd>Demonstrates use of ListFragment to show the contents of a simple ArrayAdapter.</dd>
     47   
     48   <dt><a href="FragmentMenuSupport.html">Fragment Menu</a></dt>
     49   <dd>Demonstrates populating custom menu items from a Fragment.</dd>
     50   
     51   <dt><a href="FragmentPagerSupport.html">Fragment Pager Support</a></dt>
     52   <dd>Demonstrates the use of the support class ViewPager with a
     53   FragmentPagerAdapter to build a user interface where the user can fling
     54   left or right to switch between fragments.</dd>
     55 
     56   <dt><a href="FragmentStatePagerSupport.html">Fragment State Pager Support</a></dt>
     57   <dd>Demonstrates the use of the support class ViewPager with a
     58   FragmentStatePagerAdapter to build a user interface where the user can fling
     59   left or right to switch between fragments.  This versions of the adapter
     60   doesn't keep around the fragment instances that ViewPager has destroyed.</dd>
     61 
     62   <dt><a href="FragmentReceiveResultSupport.html">Fragment Receive Result</a></dt>
     63   <dd>Demonstrates starting a new Activity from a Fragment, and receiving
     64   a result back from it.</dd>
     65   
     66   <dt><a href="FragmentRetainInstanceSupport.html">Fragment Retain Instance</a></dt>
     67   <dd>Demonstrates a Fragment can be used to easily retain active state across
     68   an Activity's configuration change.</dd>
     69   
     70   <dt><a href="FragmentStackSupport.html">Fragment Stack</a></dt>
     71   <dd>Demonstrates creating a stack of Fragment instances similar to the
     72   traditional stack of activities.</dd>
     73   
     74   <dt><a href="FragmentTabs.html">Fragment Tabs</a></dt>
     75   <dd>Demonstrates the use of fragments to implement switching between
     76   tabs in a TabHost.</dd>
     77 
     78   <dt><a href="FragmentTabsPager.html">Fragment Tabs Pager</a></dt>
     79   <dd>Demonstrates the use of fragments to implement switching between
     80   tabs in a TabHost, using a ViewPager to manager the fragments so that
     81   the user can also fling left and right to switch tabs.</dd>
     82 
     83 </dl>
     84 
     85 <h3 id="LoaderManager">LoaderManager</h3>
     86 <dl>
     87   <dt><a href="LoaderCursorSupport.html">Loader Cursor</a></dt>
     88   <dd>Demonstrates use of LoaderManager to perform a query for a Cursor that
     89   populates a ListFragment.</dd>
     90 
     91   <dt><a href="LoaderCustomSupport.html">Loader Custom</a></dt>
     92   <dd>Demonstrates implementation and use of a custom Loader class.  The
     93   custom class here "loads" the currently installed applications.</dd>
     94   
     95   <dt><a href="LoaderThrottleSupport.html">Loader Throttle</a></dt>
     96   <dd>Complete end-to-end demonstration of a simple content provider that
     97   populates data in a list through a cursor loader.  The UI allows the list
     98   to be populated with a series of items, showing how AsyncTaskLoader's
     99   throttling facility can be used to control how much a Loader is refreshed
    100   in this case.</dd>
    101 </dl>
    102