summaryrefslogtreecommitdiffstats
path: root/docs/html/training/implementing-navigation
diff options
context:
space:
mode:
authorScott Main <smain@google.com>2013-05-16 10:41:15 -0700
committerScott Main <smain@google.com>2013-05-16 10:47:12 -0700
commit678235122bb61304a36731e7a4ab1f4ad666980f (patch)
tree5cf83898fba5761686405311b2142e7432b168d0 /docs/html/training/implementing-navigation
parenta012887a7856c29e77cd9b08fab16a6c26c93c57 (diff)
downloadframeworks_base-678235122bb61304a36731e7a4ab1f4ad666980f.zip
frameworks_base-678235122bb61304a36731e7a4ab1f4ad666980f.tar.gz
frameworks_base-678235122bb61304a36731e7a4ab1f4ad666980f.tar.bz2
add links to nav drawer icons
Change-Id: I97cf24421542d70402488f8c193c7bcc7ef7edd5
Diffstat (limited to 'docs/html/training/implementing-navigation')
-rw-r--r--docs/html/training/implementing-navigation/nav-drawer.jd17
1 files changed, 15 insertions, 2 deletions
diff --git a/docs/html/training/implementing-navigation/nav-drawer.jd b/docs/html/training/implementing-navigation/nav-drawer.jd
index 81c792d..527d570 100644
--- a/docs/html/training/implementing-navigation/nav-drawer.jd
+++ b/docs/html/training/implementing-navigation/nav-drawer.jd
@@ -25,6 +25,12 @@ trainingnavtop=true
<p class="filename">NavigationDrawer.zip</p>
</div>
+<div class="download-box">
+<a href="http://developer.android.com/downloads/design/Android_Navigation_Drawer_Icon_20130516.zip"
+ class="button">Download the nav drawer icons</a>
+<p class="filename">Android_Navigation_Drawer_Icon_20130516.zip</p>
+</div>
+
</div>
</div>
@@ -296,6 +302,8 @@ it with its constructor, which requires the following arguments:</p>
<li>The {@link android.app.Activity} hosting the drawer.
<li>The {@link android.support.v4.widget.DrawerLayout}.
<li>A drawable resource to use as the drawer indicator.
+ <p><a href="http://developer.android.com/downloads/design/Android_Navigation_Drawer_Icon_20130516.zip"
+>Download the standard navigation icons</a> (available for both dark and light themes).</p>
<li>A String resource to describe the "open drawer" action (for accessibility).
<li>A String resource to describe the "close drawer" action (for accessibility).
</ul>
@@ -315,8 +323,13 @@ public class MainActivity extends Activity {
...
mDrawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout);
- mDrawerToggle = new ActionBarDrawerToggle(this, mDrawerLayout,
- R.drawable.ic_drawer, R.string.drawer_open, R.string.drawer_close) {
+ mDrawerToggle = new ActionBarDrawerToggle(
+ this, /* host Activity */
+ mDrawerLayout, /* DrawerLayout object */
+ R.drawable.ic_drawer, /* nav drawer icon to replace 'Up' caret */
+ R.string.drawer_open, /* "open drawer" description */
+ R.string.drawer_close /* "close drawer" description */
+ ) {
/** Called when a drawer has settled in a completely closed state. */
public void onDrawerClosed(View view) {