Android转载Android Tips

Android Bottom navigation 规范二:样式

2016-04-06  本文已影响1039人  Gracker

1. 样式-Style

1.1 图标和文字-Icons and text

Because bottom navigation actions are presented as icons, they should be used for content that can be suitably communicated with icons.
由于底部导航操作显示为图标,它应该使用与其内容相符合的图标。根据以下条件来为每个操作设定样式:

1.2颜色

Tint the current bottom navigation action (including the icon and any text label present) with the app’s primary color
用应用的主色调给底部导航操作(包括图标与当前标签文字)上色。


Do. Use the app’s primary color to indicate the view in focus. Don't. Avoid using different colored icons and text labels.

如果底部导航条已着色,将底部导航操作图标和文字设置为白色或黑色。

Do. Use black or white iconography if the bottom navigation bar is colored. Don't. Avoid pairing colored icons with a colored bottom navigation bar.

1.3文本标签

文本标签为导航图标提供简明的定义。应避免使用较长的文本而造成文本被裁截或遮挡。


Do. Use short labels Don't. Avoid labels with wrapping text Don't. Avoid truncating text labels as doing so may prevent comprehension. Don't. Avoid shrinking text labels to fit on a single line.

2.操作

点击底部导航图标将直接跳转至相关的界面或刷新当前的界面。

每一个底部导航图标都必须指向一个目的,不应打开主菜单或跳转至其他窗口。

每一个底部导航图标都会随着界面的滚动而动态的显示或隐藏。

在内容区域使用滑动手势不能进行界面的跳转。
在当前界面与未激活界面的跳转过程中使用淡入淡出的动画效果。

3.空间

3.1确定底部导航栏

用底部导航栏的总长度除以图标的个数,计算出每个图标的宽度。也就是说,要使得每个底部导航图标占有最充足的空间。


Fixed bottom navigation bar on mobile

宽度的最大及最小值(这些数据包含边距):

高度:
56dp

图标:
24*24dp

104dp min width for smaller views 168dp max width

内容对齐:
文本与图标需居中且水平。

边距:

文本标签:

12dp left and right of text 12dp left and right of text Fixed bottom navigation bar on landscape mobile Fixed bottom navigation bar on tablet

3.2切换底部导航栏

用底部导航栏的总长度除以图标的个数,计算出每个图标的宽度。

Shifting bottom navigation bar on mobile

宽度的最大及最小值(这些数据包含边距):
当前界面

未激活界面

Active view: 96dp min width Active view: 168dp max width Inactive view: 64dp min width Inactive view: 96dp max width

高度:
56dp

图标:
24*24 dp

内容对齐:
文本与图标需居中且水平。

边距:

文本标签:
常规 Roboto 字体: 14sp(当前界面)

Shifting bottom navigation bar on landscape mobile Shifting bottom navigation bar on tablet

4. 层级

由于 snackbars 的层级高度(elevation) 为6dp,而 navigation bar 的层级高度为 8dp,所以 snackbars 显示在 navigation bar 的后面。而 Bottom sheets, navigation drawers 和 keyboards 都显示在 navigation bar 的前面,完全覆盖 navigation bar 。

Snackbars appear behind the bottom navigation bar. Orthographic view of app structure

本文标题:Android Bottom navigation 规范二:样式、行为与规格
文章作者:Gracker
发布时间:2016年04月05日 - 23时10分
最后更新:2016年04月05日 - 23时28分
原始链接:http://androidperformance.com/2016/04/05/android-bottom-bar-2.html **
许可协议:** "署名-非商用-相同方式共享 3.0" 转载请保留原文链接及作者。

上一篇 下一篇

猜你喜欢

热点阅读