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).

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

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

让我们开始吧

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

Android官方文档翻译 七 2.Adding the Action Bar的更多相关文章

  1. Android官方文档翻译 十一 2.4Overlaying the Action Bar

    Overlaying the Action Bar 叠加菜单栏 This lesson teaches you to 这节课教给你: Enable Overlay Mode 启用叠加模式 For An ...

  2. Android官方文档翻译 十 2.3Styling the Action Bar

    Styling the Action Bar 设计菜单栏的样式 This lesson teaches you to 这节课教给你 Use an Android Theme 使用一个Android主题 ...

  3. Android官方文档翻译 八 2.1Setting Up the Action Bar

    Setting Up the Action Bar 建立Action Bar This lesson teaches you to 这节课教给你 Support Android 3.0 and Abo ...

  4. Android官方文档翻译 一 Getting Started

    Getting Started 让我们开始吧! Welcome to Training for Android developers. 欢迎来到Android开发者训练营. Here you'll f ...

  5. Android官方文档翻译 六 1.4Starting Another Activity

    Starting Another Activity 开启另一个Activity This lesson teaches you to 这节课教给你: Respond to the Send Butto ...

  6. Android训练课程(Android Training) - 添加活动栏(使用action bar)

    2014-10-28 张云飞VIR 翻译自:https://developer.android.com/training/basics/actionbar/index.html 添加活动栏(Addin ...

  7. Android UI开发第二十四篇——Action Bar

    Action bar是一个标识应用程序和用户位置的窗口功能,并且给用户提供操作和导航模式.在大多数的情况下,当你需要突出展现用户行为或全局导航的activity中使用action bar,因为acti ...

  8. 【转】Android UI开发第二十四篇——Action Bar

    Action bar是一个标识应用程序和用户位置的窗口功能,并且给用户提供操作和导航模式.在大多数的情况下,当你需要突出展现用户行为或全局导航的activity中使用action bar,因为acti ...

  9. Android官方文档翻译 九 2.2Adding Action Buttons

    Adding Action Buttons 增加动作按钮 This lesson teaches you to 这节课教给你 Specify the Actions in XML 在XML中指定动作 ...

随机推荐

  1. [BUUCTF]PWN——铁人三项(第五赛区)_2018_rop

    铁人三项(第五赛区)_2018_rop[32位libc泄露] 题目附件 解题步骤: 例行检查,32位,开启了NX保护 试运行一下程序,一开始让我们输入,然后直接输出"Hellow,world ...

  2. MES目前应用很多,为什么APS计划排程系统应用很少?

    一.APS自动化计划排程能带来哪些效益? 1.提高订单准时交货率,提高客户满意度 2.缩短生产制造周期,提高生产效率 3.多品种.小批量.以销定产,快速解决插单.急单预测交期问题 4.减少物料采购提前 ...

  3. c++模板类的使用,编译的问题

    1,模板类编译的问题 前两天在写代码时,把模板类的声明和分开放在两个文件中了,类似于下面这样: stack.hpp: #ifndef _STACK_HPP #define _STACK_HPP tem ...

  4. LuoguP2108 学英语 题解

    Content 给出整数 \(x\) 的英文写法,求出这个整数 \(x\). 规则详见题面. 数据范围:\(|x|\leqslant 999999999\)(\(9\) 个 \(9\)). Solut ...

  5. LuoguP7892 『JROI-3』R.I.P. 题解

    Update \(\texttt{2021.10.11}\) 修改了一处公式错误,麻烦管理重新审核一下这篇已审核通过文章. Content 你在一个无限大的格子平面上,并且有 \(m\) 个长度为 \ ...

  6. AcWing09. 分组背包问题

    有\(N\)组物品和一个容量是\(V\)的背包. 每组物品有若干个,同一组内的物品最多只能选一个. 每件物品的体积是\(v_{ij}\),价值是\(w_{ij}\),其中\(i\)是组号,\(j\)是 ...

  7. 【剑指Offer】10- I. 斐波那契数列 解题报告(Python & C++)

    作者: 负雪明烛 id: fuxuemingzhu 个人博客:http://fuxuemingzhu.cn/ 个人微信公众号:负雪明烛 目录 题目描述 解题方法 递归 动态规划 日期 题目地址:htt ...

  8. 基于CA认证(结合文档在线预览)的电子签章解决方案

    分享一个基于CA认证(结合文档在线预览)的电子签章实现思路,恰巧是最近项目中遇到的,欢迎大家一起讨论. 一. 项目背景 在公司业务系统中,按照传统的签章方式,存在以下痛点: 1.成本高,体现在纸质合同 ...

  9. Sublime Text 3菜单栏隐藏后怎么显示

    Sublime Text 3如何显示菜单栏 今天在使用Sublime Text 3敲代码的时候不小心就把上侧的菜单栏隐藏了,自己鼓捣了半天才把菜单栏弄出来,下面我就给大家讲解一下我是如何操作的 键盘按 ...

  10. A Tutorial on Energy-Based Learning

    目录 概 主要内容 损失函数 Energy Loss Generalized Perceptron Loss Generalized Margin Loss Hinge Loss Log Loss L ...