1. NavigationView介绍

表示Android应用程序的标准导航菜单。 菜单内容可以由菜单资源文件填充。

2.使用模板

NavigationView通常放在DrawerLayout中。

 <android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"    xmlns:app="http://schemas.android.com/apk/res-auto"    android:id="@+id/drawer_layout"    android:layout_width="match_parent"    android:layout_height="match_parent"    android:fitsSystemWindows="true">    <!-- 你的内容 -->    <android.support.design.widget.NavigationView        android:id="@+id/navigation"        android:layout_width="wrap_content"        android:layout_height="match_parent"        android:layout_gravity="start"        app:menu="@menu/my_navigation_items" />//导航菜单</android.support.v4.widget.DrawerLayout>

更多相关文章

  1. Android之菜单总结
  2. Android学习篇之Menu的使用
  3. android 复制、剪切、粘贴
  4. TabHost与RadioGroup结合完成的菜单【带效果图】5个Activity
  5. Android内容提供者源码
  6. SlidingMenu和ActionBarSherlock结合做出出色的App布局,Facebook
  7. [android]在上下文菜单的选中事件中获取列表选中的元素
  8. Android(安卓)TabHost使用、动态加载内容
  9. android api 中文 (74)—— AdapterView.AdapterContextMenuInfo

随机推荐

  1. Android中的主题Theme
  2. Android(安卓)TextView跑马灯效果
  3. Android(安卓)资源文件中@、@android:typ
  4. 相对布局相关属性
  5. Android课程大纲
  6. Android控件——TextView、EditText、Ima
  7. 02常用控件属性以及四种监听事件的写法
  8. Android修改自己程序字体
  9. 《第一行代码--Android》读书笔记之UI篇
  10. Android(安卓)shap selector animation