I want to add a side navigation menu to my android app (like Facebook, Google+, Spotify, Prixing, Evernote, etc)
I already had a look here : Android Facebook style slide and here : https://github.com/Gregadeaux/android-fly-in-app-navigation
By following this last link, I got a working implementation which I customized a bit.
As you can see the action bar doesn't slide. That's normal since it's not a part of the sliding view in the Gregadeaux's implementation.
I'd like to include the actionbar in the sliding view. It's probably possible by making a custom implementation of the actionbar but I'd like to keep the original one.
The Google+ app seems not to use a custom actionbar.
Any idea how I can do that? Thanks :)
EDIT: After some search I eventually found that the Google+ app is using a custom actionbar implementation.
In Android applications, ActionBar is the element present at the top of the activity screen. It is a salient feature of a mobile application that has a consistent presence over all its activities.
All action buttons and other items available in the action overflow are defined in an XML menu resource. To add actions to the action bar, create a new XML file in your project's res/menu/ directory. The app:showAsAction attribute specifies whether the action should be shown as a button on the app bar.
Now if you want to add other resolutions pictures to this drawable, just do it in the same manner. Step 5) And now go to the other folder which is Settings -> Androids-> drawable hdpi. And then go to your Android, then drawable, paste it here and inside this drawable-hdpi and click Ok.
I found a even better solution! super easy to use, super flexible.
https://github.com/jfeinstein10/SlidingMenu
EDIT:
Note that the new navigation drawer should now be used in order to comply to the android design guidelines. Check http://developer.android.com/design/patterns/navigation-drawer.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With