Material Design学习之 Bottom navigation

转载请注明出处:王亟亟的大牛之路

礼拜4一天因为事假没有去单位而后礼拜3因为生日也没写文章,今天一早上班就补一篇MD的内容。这一篇是关于很有争议的Bottom navigation相关内容(主要是翻译和理解,代码部分还没来得及实验)html


众所周知Android以前一直提倡者”Bar”一系列的东西尽可能是在“上面”,而苹果的设计通常在如下git

像这样
这里写图片描写叙述github

而苹果的通常在如下像这样(拿个人微信作样例,圈掉的部分无视)微信

这里写图片描写叙述

而现在Material Design设计规范中增长底部导航栏也就是咱们今天文章的主角Bottom navigationmarkdown

来看看官方是怎么形容他的(接下来的翻译全是 我人工翻译。若有不许确可请原谅。临时还没找到字幕组或者什么机构去解释这部分)app

Bottom navigation bars make it easy to explore and switch between top-level views in a single tap.
底部导航栏让咱们可以更轻松的在几个顶层的视图间进行选择和查看ide

这是一个给与咱们选择和切换试图组用的。post

(就像上面微信,联系人。发现。我这系列作功能卡片切换。TMD怎么拿微信作样例了)字体


知道了这是一个干什么用的东西以后咱们来看看他的一些要点ui

Three to five top-level destinations of similar importance (Alternative: A persistent navigation drawer accessible from anywhere in the app)

比較推崇3-5个页面的切换,假设过多就不推荐使用Bottom navigation
那假设过少,仅仅有2个这样的也是不太推荐的。

推荐
这里写图片描写叙述

不推荐
这里写图片描写叙述

不推荐
这里写图片描写叙述

注意点:
在与标签相结合的底部导航时要当心。因为在用户使用应用程序时可能会引发混淆。


Style

Because bottom navigation actions are presented as icons, they should be used for content that can be suitably communicated with icons.

因为底部的导航行为是做为图标的,因此它们应该被用于内容,可以与图标进行适当的沟通,至少要让用户简单的理解这个图标表明了什么。

颜色不要五光十色的,仅仅要让用户清楚的理解他选择的是哪一个便可了

推荐
这里写图片描写叙述

不推荐
这里写图片描写叙述

If the bottom navigation bar is colored, make the icon and text label of the current action black or white.

假设Bottom navigation自己是彩色的,那么图标和文字尽可能用黑色或者白色

推荐

不推荐

这里写图片描写叙述

Text labels provide short, meaningfully definitions to bottom navigation icons. Avoid long text labels as these labels do not truncate or wrap.

文字部分不要太长尽可能精简,表达意思便可

推荐
这里写图片描写叙述

不推荐
这里写图片描写叙述

那假设必定要很是长的描写叙述文字,请把多余部分隐藏掉,不要换行或者缩小字体大小

推荐

这里写图片描写叙述

不推荐
这里写图片描写叙述

注意点:
标签真的多了。就别贴字了。假设仅仅有三个就请字+图标都放上去
被选中的必定要高亮。高亮,高亮重要的事情说三遍


Behavior

Tapping on a bottom navigation icon takes you directly to the associated view, or refreshes the currently active view.

上拉列表时。隐藏Bottom navigation,下拉列表时,显示Bottom navigation

这个和我以前写过的一个解放用户操做空间差点儿相同概念(我好66 哈哈哈哈,传送门:http://blog.csdn.net/ddwhan0123/article/details/50352662

像这样
这里写图片描写叙述

推荐点击切换,而不是类似于viewpager形式的滑动切换

推荐
这里写图片描写叙述

不推荐
这里写图片描写叙述


Specs

和其它控件同样也有他的尺寸规格。这边就不详解了,看看便可。

这里写图片描写叙述

在不一样的屏幕大小下也有着不一样的规格体现

这里写图片描写叙述

这里写图片描写叙述

在平板里,又是这样

这里写图片描写叙述

最后贴一下视图厚度分布

这里写图片描写叙述

原文地址:https://www.google.com/design/spec/components/bottom-navigation.html#bottom-navigation-specs

2016.3.25 补上Demo:
https://github.com/aurelhubert/ahbottomnavigation

相关文章
相关标签/搜索