Hi I'm trying to create a navigation drawer similar to gmail app navigation drawer. I follow the developer site but it only specify about basic implementation. But I need to customize the navigation according to my specifications.

嗨,我正在尝试创建一个类似于gmail app导航抽屉的导航抽屉。我关注开发者网站,但它只指定了基本实现。但我需要根据我的规格自定义导航。

  1. I need to add a header to categorize the list item in Drawer
  2. 我需要添加一个标题来对Drawer中的列表项进行分类
  3. I need a radio button to select some of my options
  4. 我需要一个单选按钮来选择我的一些选项

How can I do this?

我怎样才能做到这一点?

7 个解决方案

#1


54

The tutorial Android Custom Navigation Drawer (via archive.org) contains a basic and a custom project. The latter shows how to setup a Navigation Drawer as shown in the screenshot:

Android自定义导航抽屉教程(通过archive.org)包含基本项目和自定义项目。后者展示了如何设置导航抽屉,如屏幕截图所示:

The source code of the projects (via archive.org) is available for download.

项目的源代码(通过archive.org)可供下载。


The is also the Navigation Drawer - Live-O project ...

这也是导航抽屉 - Live-O项目......

The source code of the project is available on GitHub.

该项目的源代码可在GitHub上获得。


The MaterialDrawer library aims to provide the easiest possible implementation of a navigation drawer for your application. It provides a great amount of out of the box customizations and also includes an easy to use header which can be used as AccountSwitcher.

MaterialDrawer库旨在为您的应用程序提供最简单的导航抽屉实现。它提供了大量的开箱即用自定义功能,还包括一个易于使用的标题,可用作AccountSwitcher。


Please note that Android Studio meanwhile has a template project to create a Navigation Drawer Activity as shown in the screenshot.

请注意,Android Studio同时具有一个模板项目,用于创建导航抽屉活动,如屏幕截图所示。

This repository keeps track of changes being made to the template.

此存储库会跟踪对模板所做的更改。

更多相关文章

  1. 使用Kotlin开发Android项目-Kibo(二)
  2. 如何把项目从github上导入到android studio上
  3. 直接拿来用!十大Material Design开源项目
  4. 向IntelliJ IDEA创建的项目导入Jar包的两种方式
  5. 解决Eclipse建立Maven项目后无法建立src/main/java资源文件夹的
  6. 【Android学习】案例学开发,天气记事本项目学习总结。RxJava+Retr
  7. Android项目实战--手机卫士01--启动界面
  8. android-eclipse-phonegap 2..9以下(包含2.9)的项目配置
  9. android项目 之 记事本(14) ----- 手势缩放与拖拽图片

随机推荐

  1. Android - 折线图
  2. Android Studio中配置代码和资源的路径
  3. Android v2.0 基本概念 - 浅谈
  4. 背景 透明 半透明
  5. android 自定义弹出窗口
  6. android 手机定位
  7. Ubuntu-18.04 LTS配置android系统源码编
  8. android5 sdk 下载地址大全
  9. Android Fresco图片处理库用法API英文原
  10. [Android]设置Activity为全屏显示的两种