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中指定动作 ...
随机推荐
- 解决pwn题目加载指定libc版本的问题
因为本地和远程的libc版本不同,pwn题目调试起来会有影响,所以来记录一下用patchelf和glibc-all-in-one来解决这个问题过程. 下载工具 下载patchelfgit clone ...
- exit_hook在pwn题中的应用
以前只接触过malloc_hook,free_hook,大概意思就是在调用malloc和free的时候会先看看里面有没有东西,有的话就会执行.以前在看一些师傅们博客的时候有看到过exit_hook,前 ...
- 查找与引用函数(Excel函数集团)
此处文章均为本妖原创,供下载.学习.探讨! 文章下载源是Office365国内版1Driver,如有链接问题请联系我. 请勿用于商业!谢谢 下载地址:https://officecommunity-m ...
- JavaFx WebView使用研究
原文: JavaFx WebView使用研究 | Stars-One的杂货小窝 本篇是基于TornadoFx框架的基础研究的,示例代码都是Kotlin版本,各位可以看着参考下 WebView中比较重要 ...
- linux安装软件系列之npm安装
什么是rpm 百度说它是 Red-hat Package Manager (红帽包管理器) 其实它是:RPM Package Manager (RPM包管理器,来源于:https://rpm.org) ...
- AcWing1264. 动态求连续区间和 (线段树做法)
1.题目 给定 n 个数组成的一个数列,规定有两种操作,一是修改某个元素,二是求子数列 [a,b] 的连续和. 输入格式 第一行包含两个整数 n 和 m,分别表示数的个数和操作次数. 第二行包含 n ...
- Linux(centos7)安装redis并设置redis开机自启动
1.下载redis安装包 wget http://download.redis.io/releases/redis-4.0.6.tar.gz 2.解压安装包 tar -zxvf redis-4.0.6 ...
- This request has been blocked; the content must be served over HTTPS.处理方案
在页面head标签中加入 <meta http-equiv="Content-Security-Policy" content="upgrade-insecure- ...
- ffmpeg、数字音频教程、JUCE、std::tuple
下载网易云音乐的视频 https://yunyinyue.iiilab.com/ 模板教程: https://github.com/wuye9036/CppTemplateTutorial/blob/ ...
- 【机器学*】k-*邻算法(kNN) 学*笔记
[机器学*]k-*邻算法(kNN) 学*笔记 标签(空格分隔): 机器学* kNN简介 kNN算法是做分类问题的.思想如下: KNN算法的思想总结一下:就是在训练集中数据和标签已知的情况下,输入测试数 ...