Roman Nurik | 19266f7 | 2012-03-12 21:48:47 -0700 | [diff] [blame] | 1 | page.title=Implementing Effective Navigation |
| 2 | |
| 3 | trainingnavtop=true |
| 4 | startpage=true |
Roman Nurik | 19266f7 | 2012-03-12 21:48:47 -0700 | [diff] [blame] | 5 | |
| 6 | @jd:body |
| 7 | |
| 8 | <div id="tb-wrapper"> |
| 9 | <div id="tb"> |
| 10 | |
| 11 | <h2>Dependencies and prerequisites</h2> |
| 12 | |
| 13 | <ul> |
Scott Main | 7c84055 | 2013-03-26 18:53:01 -0700 | [diff] [blame] | 14 | <li>Android 2.2 or higher</li> |
Roman Nurik | 19266f7 | 2012-03-12 21:48:47 -0700 | [diff] [blame] | 15 | <li>Understanding of fragments and Android layouts</li> |
Scott Main | 4e2c9dc | 2013-07-23 19:35:17 -0700 | [diff] [blame] | 16 | <li><a href="{@docRoot}tools/support-library/index.html">Android Support Library</a></li> |
Roman Nurik | 19266f7 | 2012-03-12 21:48:47 -0700 | [diff] [blame] | 17 | <li><a href="{@docRoot}training/design-navigation/index.html">Designing Effective Navigation</a></li> |
| 18 | </ul> |
| 19 | |
| 20 | <h2>You should also read</h2> |
| 21 | |
| 22 | <ul> |
| 23 | <li><a href="{@docRoot}guide/topics/ui/actionbar.html">Action Bar</a></li> |
Scott Main | 50e990c | 2012-06-21 17:14:39 -0700 | [diff] [blame] | 24 | <li><a href="{@docRoot}guide/components/fragments.html">Fragments</a></li> |
Roman Nurik | 19266f7 | 2012-03-12 21:48:47 -0700 | [diff] [blame] | 25 | <li><a href="{@docRoot}training/multiscreen/index.html">Designing for Multiple Screens</a></li> |
| 26 | </ul> |
| 27 | |
| 28 | <h2>Try it out</h2> |
| 29 | |
| 30 | <div class="download-box"> |
| 31 | <a href="http://developer.android.com/shareables/training/EffectiveNavigation.zip" |
| 32 | class="button">Download the sample app</a> |
| 33 | <p class="filename">EffectiveNavigation.zip</p> |
| 34 | </div> |
| 35 | |
| 36 | </div> |
| 37 | </div> |
| 38 | |
| 39 | |
| 40 | <p>This class demonstrates how to implement the key navigation design patterns detailed in the |
| 41 | <a href="{@docRoot}training/design-navigation/index.html">Designing Effective Navigation</a> class. |
Scott Main | 7c84055 | 2013-03-26 18:53:01 -0700 | [diff] [blame] | 42 | </p> |
Roman Nurik | 19266f7 | 2012-03-12 21:48:47 -0700 | [diff] [blame] | 43 | |
Scott Main | 7c84055 | 2013-03-26 18:53:01 -0700 | [diff] [blame] | 44 | <p>After reading the lessons in this class, you should have a strong understanding of how to |
| 45 | implement navigation patterns with tabs, swipe views, and a navigation drawer. You should also |
| 46 | understand how to provide proper <em>Up</em> and <em>Back</em> navigation.</p> |
| 47 | |
| 48 | <p class="note"><strong>Note:</strong> Several elements of this class require the |
Scott Main | 4e2c9dc | 2013-07-23 19:35:17 -0700 | [diff] [blame] | 49 | <a href="{@docRoot}tools/support-library/index.html">Support Library</a> APIs. |
Scott Main | d797c3c | 2013-07-30 16:24:33 -0700 | [diff] [blame] | 50 | If you have not used the Support Library before, follow the instructions |
| 51 | in the <a href="{@docRoot}tools/support-library/setup.html">Support Library Setup</a> |
| 52 | document.</p> |
Roman Nurik | 19266f7 | 2012-03-12 21:48:47 -0700 | [diff] [blame] | 53 | |
| 54 | |
| 55 | <h2 id="lessons">Lessons</h2> |
| 56 | |
Roman Nurik | 19266f7 | 2012-03-12 21:48:47 -0700 | [diff] [blame] | 57 | <dl> |
Scott Main | 7c84055 | 2013-03-26 18:53:01 -0700 | [diff] [blame] | 58 | <dt><strong><a href="lateral.html">Creating Swipe Views with Tabs</a></strong></dt> |
| 59 | <dd>Learn how to implement tabs in the action bar and provide |
| 60 | horizontal paging (swipe views) to navigate between tabs.</dd> |
Roman Nurik | 19266f7 | 2012-03-12 21:48:47 -0700 | [diff] [blame] | 61 | |
Scott Main | 7c84055 | 2013-03-26 18:53:01 -0700 | [diff] [blame] | 62 | <dt><strong><a href="nav-drawer.html">Creating a Navigation Drawer</a></strong></dt> |
| 63 | <dd>Learn how to build an interface with a hidden navigation drawer on the side |
| 64 | of the screen that opens with a swipe or by pressing the action bar's app icon.</dd> |
Roman Nurik | 19266f7 | 2012-03-12 21:48:47 -0700 | [diff] [blame] | 65 | |
Scott Main | 7c84055 | 2013-03-26 18:53:01 -0700 | [diff] [blame] | 66 | <dt><strong><a href="ancestral.html">Providing Up Navigation</a></strong></dt> |
| 67 | <dd>Learn how to implement <em>Up</em> navigation using the action bar's app icon.</dd> |
| 68 | |
| 69 | <dt><strong><a href="temporal.html">Providing Proper Back Navigation</a></strong></dt> |
| 70 | <dd>Learn how to correctly handle the <em>Back</em> button in special cases, |
| 71 | including how to insert activities into the back stack when deep-linking the user |
| 72 | from notifications or app widgets.</dd> |
Roman Nurik | 19266f7 | 2012-03-12 21:48:47 -0700 | [diff] [blame] | 73 | |
| 74 | <dt><strong><a href="descendant.html">Implementing Descendant Navigation</a></strong></dt> |
Scott Main | 7c84055 | 2013-03-26 18:53:01 -0700 | [diff] [blame] | 75 | <dd>Learn the finer points of navigating down into your application's information hierarchy.</dd> |
Roman Nurik | 19266f7 | 2012-03-12 21:48:47 -0700 | [diff] [blame] | 76 | </dl> |