Android官方文档翻译 七 2.Adding the Action Bar

Adding the Action Bar

增加一个Action Bar(工具栏)

The action bar is one of the most important design elements you can implement for your app’s activities. It provides several user interface features that make your app immediately familiar to users by offering consistency between other Android apps. Key functions include:

Action Bar是你的应用程序的activities中你可以实现的最重要的设计元素之一。它提供了几个用户界面特性,能够让你的应用程序通过和其他的Android应用程序保持一致性来让用户很快熟悉起来。主要功能包括:

  • A dedicated space for giving your app an identity and indicating the user’s location in the app.

    划分一块专有的空间,这个空间用来显示你的应用程序的身份,并且指明用户当前在应用程序中的位置。

  • Access to important actions in a predictable way (such as Search).

    用一个可预见的方式进入一些重要的动作(比如搜索)。

  • Support for navigation and view switching (with tabs or drop-down lists).

    支持导航和视图选择(通过标签或者下拉式列表)。

actionbar-actions.png

This training class offers a quick guide to the action bar’s basics. For more information about action bar’s various features, see the Action Bar guide.

这节练习课程提供了一个对于action bar的基础的快速向导。想获得更多的关于action bar的不同特色的内容,请看Action Bar guide(Action Bar 向导)。

Lessons

课程列表

Setting Up the Action Bar

建立Action Bar

Learn how to add a basic action bar to your activity, whether your app supports only Android 3.0 and higher or also supports versions as low as Android 2.1 (by using the Android Support Library).

学习如何在你的activity中增加一个基本的action bar,无论你的应用程序是支持Android 3.0以上版本,还是支持Android 2.1以下版本(通过使用Android Support Library)。

Adding Action Buttons

增加动作按钮

Learn how to add and respond to user actions in the action bar.

学习如何在action bar中添加和响应用户的动作。

Styling the Action Bar

给Action Bar设计样式

Learn how to customize the appearance of your action bar.

学习如何对你的action bar定制外观

Overlaying the Action Bar

覆盖Action Bar

Learn how to overlay the action bar in front of your layout, allowing for seamless transitions when hiding the action bar.< 8b8 /dd>

学习如何在你的布局中复写操作栏,当隐藏action bar时允许无缝转换。

Get started

让我们开始吧

这个是我自己翻译的,如果您发现其中有重要错误,敬请指出!

posted @ 2015-11-29 12:32  末日没有进行曲  阅读(155)  评论(0编辑  收藏  举报