13

How can I use Google's new icon? Is this a resource? Or something you can add in code, such as:

actionBar.setDisplayHomeAsUpEnabled(showHomeAsUp)

Here is picture from dev site (note: It's the "3 Lines" that I am seeking):

enter image description here

Jonik
  • 80,077
  • 70
  • 264
  • 372
TheLettuceMaster
  • 15,594
  • 48
  • 153
  • 259
  • 3
    That might be the `ActionBarDrawerToggle`: http://developer.android.com/reference/android/support/v4/app/ActionBarDrawerToggle.html – CommonsWare May 16 '13 at 16:35
  • That does indeed look like it. Now looking to see how to implement... – TheLettuceMaster May 16 '13 at 16:45
  • Well, I am using the `SlidingMenu` library by `jfeinstien`, so this may not work to incorporate this to that? I was assuming this would be a separate element. – TheLettuceMaster May 16 '13 at 16:53
  • 1
    I certainly would not assume that. That being said, the code should be in AOSP, and so somebody could poke around and find where the icon is and perhaps figure out how to use it with third-party sliding menu implementations. – CommonsWare May 16 '13 at 16:57
  • hi.. can i use Android Navigation Drawer in Android < 3.0 ,using any support lib ? – Vibhor Bhardwaj Aug 01 '13 at 06:42

1 Answers1

44

The icon is available for download in the Android developers downloads section. Find it at /Navigation_Drawer_Indicator in the ZIP file.

Drawer icon

If you are looking for the new material navigation drawer icon, you can find it in the official Material Design Icons in different colors and sizes, for example at navigation/drawable-xxhdpi/ic_menu_black_24dp.png.

Material drawer icon

Matthias Robbers
  • 15,689
  • 6
  • 63
  • 73
  • 3
    Also note that the `drawer_shadow.9.png` provided in this download is specifically designed for the **left** edge. To get it to work with the right edge, you can simply rotate the one shadow image, using something like this in a `drawer_shadow_right.xml` file: `` – Joe Jun 27 '13 at 02:17
  • I'm [having trouble](http://stackoverflow.com/q/19724567/56285) getting this indicator to show up, [except for API level 18](http://stackoverflow.com/a/19727518/56285). Any ideas? – Jonik Nov 01 '13 at 14:08