Create a hamburger menu with navigation drawer in Android

落花浮王杯 提交于 2019-12-01 08:06:06

问题


I want to create a hamburger menu in android with navigation drawer. I've already developed it but according to the requirements the menu should slide out the base fragment instead of overlapping. I want to develop something like the hamburger menu used by facebook.

  1. This is what I require :

  1. This is what I've accomplished:

Any help is appreciated, thanks.


回答1:


Google introduce Material Design with the new guidelines for Navigation Drawer : official source.

Some amazing people made library matching this guidelines : https://github.com/mikepenz/MaterialDrawer

If you want to do it yourself : https://github.com/codepath/android_guides/wiki/Fragment-Navigation-Drawer



来源:https://stackoverflow.com/questions/30169832/create-a-hamburger-menu-with-navigation-drawer-in-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!