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).
支持导航和视图选择(通过标签或者下拉式列表)。

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的更多相关文章
- Android官方文档翻译 十一 2.4Overlaying the Action Bar
Overlaying the Action Bar 叠加菜单栏 This lesson teaches you to 这节课教给你: Enable Overlay Mode 启用叠加模式 For An ...
- Android官方文档翻译 十 2.3Styling the Action Bar
Styling the Action Bar 设计菜单栏的样式 This lesson teaches you to 这节课教给你 Use an Android Theme 使用一个Android主题 ...
- 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 ...
- Android官方文档翻译 一 Getting Started
Getting Started 让我们开始吧! Welcome to Training for Android developers. 欢迎来到Android开发者训练营. Here you'll f ...
- Android官方文档翻译 六 1.4Starting Another Activity
Starting Another Activity 开启另一个Activity This lesson teaches you to 这节课教给你: Respond to the Send Butto ...
- Android训练课程(Android Training) - 添加活动栏(使用action bar)
2014-10-28 张云飞VIR 翻译自:https://developer.android.com/training/basics/actionbar/index.html 添加活动栏(Addin ...
- Android UI开发第二十四篇——Action Bar
Action bar是一个标识应用程序和用户位置的窗口功能,并且给用户提供操作和导航模式.在大多数的情况下,当你需要突出展现用户行为或全局导航的activity中使用action bar,因为acti ...
- 【转】Android UI开发第二十四篇——Action Bar
Action bar是一个标识应用程序和用户位置的窗口功能,并且给用户提供操作和导航模式.在大多数的情况下,当你需要突出展现用户行为或全局导航的activity中使用action bar,因为acti ...
- Android官方文档翻译 九 2.2Adding Action Buttons
Adding Action Buttons 增加动作按钮 This lesson teaches you to 这节课教给你 Specify the Actions in XML 在XML中指定动作 ...
随机推荐
- 解放生产力「GitHub 热点速览 v.21.51」
作者:HelloGitHub-小鱼干 解放生产力一直都是我们共同追求的目标,能在摸鱼的空闲把赚了.而大部分好用的工具便能很好地解放我们的生产力,比如本周特推 RedisJSON 不用对 JSON 做哈 ...
- LuoguP3880 [JLOI2008]提示问题 题解
Content 由于题目要求是在太过复杂,请见原题面查看. Solution 这题明显是一个大模拟,那么废话少说,我们开始吧. 首先就是要找到所有的字母,比如说样例,其中底下加了^ 号的就是所有字母的 ...
- CF658A Bear and Reverse Radewoosh 题解
Content 一场比赛有 \(n\) 道题目,其中第 \(i\) 道题目的分值为 \(p_i\),需要花费的时间为 \(t_i\).需要说明的是,\(t_i\) 越大,这道题目的难度越大.在第 \( ...
- CF572B Order Book 题解
Content 账单里面有 \(n\) 条记录,只有卖出记录和买入记录两种,并且都包含两个信息 \(p_i,q_i\),现在根据这些记录,请执行如下操作: 将所有 \(p_i\) 相等的同种记录合并( ...
- SpringBoot项目给静态变量static注入@Value
@value不能直接注入值给静态属性,spring 不允许/不支持把值注入到静态变量中:spring支持set方法注入,我们可以利用非静态setter 方法注入静态变量 @Component publ ...
- PC chrome开启自带的dark mode
地址 复制下面的地址到chrome地址栏打开,再设置为 Enable 就可以开启了. chrome://flags/#enable-force-dark
- cmake命令行生成32位和64位项目
概述 本文演示环境: win10 + VS2017 1.指定变量值 咱们常用命令[cmake ..]在build目录下配置生成项目和解决方案. 其实,这个命令还有其他用法. 指定CMakeLists. ...
- 【LeetCode】1631. 最小体力消耗路径 Path With Minimum Effort
作者: 负雪明烛 id: fuxuemingzhu 个人博客:http://fuxuemingzhu.cn/ 目录 题目描述 解题思路 并查集 代码 刷题心得 欢迎加入组织 日期 题目地址:https ...
- 【LeetCode】109. Convert Sorted List to Binary Search Tree 解题报告(Python)
[LeetCode]109. Convert Sorted List to Binary Search Tree 解题报告(Python) 标签(空格分隔): LeetCode 作者: 负雪明烛 id ...
- uniapp医院预约挂号微信小程序
开头感言:最近看小程序很火,也想弄一个看看,用了一些时间从0开始写,也记录了一些笔记,自己用框架写的模板,不是很精美,后面会慢慢优化,功能也是后面慢慢加上去的, 其中功能这块,起初只是一些简单的功能, ...