-1

I've setup up a navigation drawer in my android App. I would like to add a button to the left but not in the action bar, because I don't have action bar. What I want to do is a button which can be taken and swiped to open the menu.

In the doc : http://developer.android.com/training/implementing-navigation/nav-drawer.html#ActionBarIcon I don't want to use the app icon, but my own button.

Is it possible ?

psv
  • 3,147
  • 5
  • 32
  • 67
  • [This](http://stackoverflow.com/a/17822591/1777090) might help you. – MysticMagicϡ Sep 29 '14 at 13:29
  • I'd like to swipe with this button, not a simple button to open. – psv Sep 29 '14 at 13:38
  • Your goal is unclear. The Drawer already opens by dragging it, so do you just want some View as decoration? Maybe a simple mockup image would help to clarify. – Mike M. Sep 29 '14 at 13:50
  • Yeah : https://imageshack.com/i/excNFUOxp Is it better ? ;). Yes, like you say, it's simply a decoration to say "hey, you can swipe here !!" – psv Sep 29 '14 at 14:18

1 Answers1

0

With this library you can do exactly what you want. It's easy to implement and use.

https://github.com/jfeinstein10/SlidingMenu

savepopulation
  • 11,736
  • 4
  • 55
  • 80
  • Thanks, but I don't want to use any other library, are you sure it's not possible with a native Android code ? – psv Sep 29 '14 at 13:39
  • i did not say "it's not possible with native android code" i did not do what you want with navigation drawer but it did same with the library i linked in my answer. – savepopulation Sep 29 '14 at 13:40