这篇文章来总结当下如何按照Android Design去设计导航菜单栏,我为什么说当下呢?因为它是会变得。。我们细细探究
http://www.androiduipatterns.com/2014/10/navigation-drawer-where-does-it-belong.html
在material design没出来之前,官方对滑动导航菜单是这样要求的。
滑动菜单需要在Act...
分类:
移动开发 时间:
2016-07-31 13:14:35
阅读次数:
250
DrawerLayout NavigationView 配合起来非常简单就能做出抽屉效果 在navigation_header 属性中 app:headerLayout="@layout/navigation_header" 可以指定上部分的布局 app:menu="@menu/drawer" 可以 ...
分类:
其他好文 时间:
2016-07-23 18:15:29
阅读次数:
942
The navigation drawer is a panel that displays the app’s main navigation options on the left edge of the screen. It is hidden most of the time, but is ...
分类:
其他好文 时间:
2016-06-29 20:17:31
阅读次数:
246
昨天想到了NavigationDrawer中Item点击的问题。 点击Drawer中的一个Item需要到一个新的页面,你是应该打开一个新的Activity呢还是直接用fragment呢? 如果打开新的activity,那么新的Activity覆盖,Drawer按钮就会消失;当然你也可以在新的Acti ...
分类:
移动开发 时间:
2016-05-01 13:35:41
阅读次数:
340
http://www.cnblogs.com/xiaobo-Linux/ QQ463431476 @android:drawable/xxx 是调用sdk安卓系统自带的图片 C:\Program Files (x86)\Android\sdk\platforms\android-15\data\re ...
分类:
移动开发 时间:
2016-04-19 19:34:05
阅读次数:
188
准备用Swift撸一个项目了, 就用这个样式了. 晚上睡不好了.黑眼圈(- -)看细节请访问我的githubhttps://github.com/Zhangjingwang1993/SwiftApp
还可以点个Star,给个鼓励.
Swift/OC 进阶交流群: 498143780// AppDelegate.swift
var drawer = MMDrawerController()let...
分类:
编程语言 时间:
2016-04-14 01:31:33
阅读次数:
383
Drawer相比大家经常能看到,优点就不用赘言了。直奔主题,MMDrawerController(https://github.com/mutualmobile/MMDrawerController)是我觉得一款比较好用的Drawer开源实现。 具体使用方法 (1)pod'MMDrawerContr
分类:
其他好文 时间:
2016-02-23 19:05:53
阅读次数:
184
建立左侧滑动Drawer步骤1:依赖库:compile 'com.android.support:appcompat-v7:23.1.1'compile 'com.android.support:design:23.1.1'步骤2:主界面布局使用android.support.v4.widget.D...
分类:
移动开发 时间:
2015-12-16 23:10:51
阅读次数:
297
一、侧滑界面Menu自定义:在menu文件夹下新建activity_main_drawer.xml文件,自定义标题和icon: 1 2 3 4 6 8 10 12 14 15 16 17...
分类:
移动开发 时间:
2015-11-18 12:20:55
阅读次数:
200
先po一张效果图PS:原谅题主的懒惰吧..看着是不是很酷炫,那是因为5.0的动画做得好,代码其实没有多少,搞清楚这个布局的层次关系很重要。废话不多说了,先来看布局文件最外层是一个DrawerLayout,它里面可以嵌套(一个?)container和多个drawer在这个demo中DrawerLayo...
分类:
移动开发 时间:
2015-08-29 20:11:13
阅读次数:
4876