blob: 0303043958a44f9d80c47cc6533b8f009a9595dc [file] [log] [blame]
Scott Maind0413012013-07-19 19:04:45 -07001page.title=Adding the Action Bar
Joe Fernandez33baa5a2013-11-14 11:41:19 -08002page.tags=actionbar
Scott Maind0413012013-07-19 19:04:45 -07003
4trainingnavtop=true
5startpage=true
6
7@jd:body
8
9<div id="tb-wrapper">
10<div id="tb">
11
12<h2>Dependencies and prerequisites</h2>
13<ul>
14 <li>Android 2.1 or higher</li>
15</ul>
16
17
18<h2>You should also read</h2>
19<ul>
20 <li><a href="{@docRoot}guide/topics/ui/actionbar.html">Action Bar</a></li>
21 <li><a href="{@docRoot}training/implementing-navigation/index.html">Implementing
22 Effective Navigation</a></li>
23</ul>
24
25</div>
26</div>
27
28<a class="notice-designers wide" href="{@docRoot}design/patterns/actionbar.html">
29 <div>
30 <h3>Design Guide</h3>
31 <p>Action Bar</p>
32 </div>
33</a>
34
35<p>The action bar is one of the most important design elements you can implement for your
36app's activities. It provides several user interface features that make your app immediately
37familiar to users by offering consistency between other Android apps. Key functions include:</p>
38
39<ul>
40 <li>A dedicated space for giving your app an identity and indicating the user's location
41 in the app.</li>
42 <li>Access to important actions in a predictable way (such as Search).</li>
43 <li>Support for navigation and view switching (with tabs or drop-down lists).</li>
44</ul>
45
46<img src="{@docRoot}images/training/basics/actionbar-actions.png" height="100" alt="">
47
48<p>This training class offers a quick guide to the action bar's basics. For more information
49about action bar's various features, see the
50<a href="{@docRoot}guide/topics/ui/actionbar.html">Action Bar</a> guide.</p>
51
52
53<h2>Lessons</h2>
54
55<dl>
56 <dt><b><a href="setting-up.html">Setting Up the Action Bar</a></b></dt>
57 <dd>Learn how to add a basic action bar to your activity, whether your app
58 supports only Android 3.0 and higher or also supports versions as low as Android 2.1
59 (by using the Android Support Library).</dd>
60 <dt><b><a href="adding-buttons.html">Adding Action Buttons</a></b></dt>
61 <dd>Learn how to add and respond to user actions in the action bar.</dd>
62 <dt><b><a href="styling.html">Styling the Action Bar</a></b></dt>
63 <dd>Learn how to customize the appearance of your action bar.</dd>
64 <dt><b><a href="overlaying.html">Overlaying the Action Bar</a></b></dt>
65 <dd>Learn how to overlay the action bar in front of your layout, allowing for
66 seamless transitions when hiding the action bar.</dd>
67</dl>
68