_index.html revision c644c91b91b83a6b400a57b02671f4ef7b7a810b
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 <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 <fragment> 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="FragmentReceiveResultSupport.html">Fragment Receive Result</a></dt> 48 <dd>Demonstrates starting a new Activity from a Fragment, and receiving 49 a result back from it.</dd> 50 51 <dt><a href="FragmentRetainInstanceSupport.html">Fragment Retain Instance</a></dt> 52 <dd>Demonstrates a Fragment can be used to easily retain active state across 53 an Activity's configuration change.</dd> 54 55 <dt><a href="FragmentStackSupport.html">Fragment Stack</a></dt> 56 <dd>Demonstrates creating a stack of Fragment instances similar to the 57 traditional stack of activities.</dd> 58 59</dl> 60 61<h3 id="LoaderManager">LoaderManager</h3> 62<dl> 63 <dt><a href="LoaderCursorSupport.html">Loader Cursor</a></dt> 64 <dd>Demonstrates use of LoaderManager to perform a query for a Cursor that 65 populates a ListFragment.</dd> 66 67 <dt><a href="LoaderThrottleSupport.html">Loader Throttle</a></dt> 68 <dd>Complete end-to-end demonstration of a simple content provider that 69 populates data in a list through a cursor loader. The UI allows the list 70 to be populated with a series of items, showing how AsyncTaskLoader's 71 throttling facility can be used to control how much a Loader is refreshed 72 in this case.</dd> 73</dl> 74