在 Android 中创建带有导航抽屉的汉堡菜单 [英] Create a hamburger menu with navigation drawer in Android

查看:21
本文介绍了在 Android 中创建带有导航抽屉的汉堡菜单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在带有导航抽屉的 android 中创建一个汉堡包菜单.我已经开发了它,但根据要求菜单应该滑出基本片段而不是重叠.我想开发一些类似于 facebook 使用的汉堡包菜单的东西.

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. 这就是我的要求:

  1. 这就是我所完成的:

感谢任何帮助,谢谢.

推荐答案

Google 引入 Material Design 和 Navigation Drawer 的新指南:官方来源.

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

一些了不起的人制作了符合此准则的库:https://github.com/mikepenz/MaterialDrawer

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

如果你想自己做:https://github.com/代码路径/android_guides/wiki/Fragment-Navigation-Drawer

这篇关于在 Android 中创建带有导航抽屉的汉堡菜单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆