Android 笔记 CoordinatorLayout
来源:互联网 发布:网络在线客服 编辑:程序博客网 时间:2024/05/15 06:43
- CoordinatorLayout
Android 官方 抽屉布局
截取官方例子中布局代码
include的布局为底层布局
后面navigationview 为抽屉,即拉出来的那一层
<?xml version="1.0" encoding="utf-8"?><android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/drawer_layout" android:layout_width="match_parent" android:layout_height="match_parent" android:fitsSystemWindows="true" tools:openDrawer="start"> <include layout="@layout/app_bar_mao" android:layout_width="match_parent" android:layout_height="match_parent" /> <android.support.design.widget.NavigationView android:id="@+id/nav_view" android:layout_width="wrap_content" android:layout_height="match_parent" android:layout_gravity="start" android:fitsSystemWindows="true" app:headerLayout="@layout/nav_header_mao" app:menu="@menu/activity_mao_drawer" /></android.support.v4.widget.DrawerLayout>
2为抽屉效果
更多详细
http://blog.csdn.net/xyz_lmn/article/details/48055919
0 0
- Android 笔记 CoordinatorLayout
- Android笔记--CoordinatorLayout
- Android CoordinatorLayout
- Android开发笔记(一百三十四)协调布局CoordinatorLayout
- 1.CoordinatorLayout应用笔记
- VIew-CoordinatorLayout 笔记
- android CoordinatorLayout使用
- Android:CoordinatorLayout使用详解
- Android CoordinatorLayout + AppBarLayout
- android CoordinatorLayout使用
- android CoordinatorLayout使用
- android CoordinatorLayout使用
- android CoordinatorLayout使用
- android CoordinatorLayout使用
- android CoordinatorLayout使用
- android CoordinatorLayout使用
- android CoordinatorLayout使用
- android CoordinatorLayout使用
- 回车符和换行符区别
- Android Camera开发:扫描二维码,周期性循环自动聚焦auto focus挂掉原因分析(preview is not enabled)
- leetcode: Remove Duplicate Letters
- Android.mk详解【转载】
- get log 查看提交历史
- Android 笔记 CoordinatorLayout
- [Ubuntu]Python的Web开发环境之mod_wsgi
- HTML5新元素section和article的区别详解
- ueditor上传分辨率大的图片显示超过编辑器宽度
- Levenshtein Distance算法(java实现)
- 用UML提高代码设计能力和增强代码可维护性
- iOS开发系列--地图与定位
- 未完成
- struts2常用标签之if/else