Starting Another Activity 开启另一个Activity This lesson teaches you to 这节课教给你: Respond to the Send Button 给发送按钮设置响应 Build an Intent 创建一个意图 Start the Second Activity 开启第二个Activity Create the Second Activity 创建第二个Activity Receive the Intent 接受意图 Display th…
Starting an Activity 开启一个Activity This lesson teaches you to 这节课教给你 Understand the Lifecycle Callbacks 理解生命周期回调 Specify Your App's Launcher Activity 声明你的App的启动Activity Create a New Instance 创建一个新的实例 Destroy the Activity 销毁Activity You should also rea…
最近在自学android,抽空把官方文档的guide跟training差不多看了一遍,又对比了一些书籍,感觉还是官方文档讲得比较好,所以自己计划把官方文档翻译一下,方便自己的知识巩固以及复习查找,由于英文不是非常好,所以翻译得不是很好,有不好的地方欢迎大家指出哈, 由于之前已经看过官方文档了,感觉最佳的路线是跟着官方training操作,遇到知识点或者不懂的再去guide跟reference中查找阅读,所以先从trainging翻译起了.针对官方文档,在翻译的基础上加入了一些自己的解释,希望能够…
Adding Action Buttons 增加动作按钮 This lesson teaches you to 这节课教给你 Specify the Actions in XML 在XML中指定动作 Add the Actions to the Action Bar 把动作添加到状态栏 Respond to Action Buttons 让动作按钮有响应 Add Up Button for Low-level Activities 对低版本的activities增加顶部按钮 You should…
Supporting Different Platform Versions 支持不同的平台版本 This lesson teaches you to 这节课教给你 Specify Minimum and Target API Levels 指定最小和目标API等级 Check System Version at Runtime 检查运行时的系统版本 Use Platform Styles and Themes 使用平台样式和主题 You should also read 你还应该阅读 Andr…
Styling the Action Bar 设计菜单栏的样式 This lesson teaches you to 这节课教给你 Use an Android Theme 使用一个Android主题 Customize the Background 定义背景 Customize the Text Color 定义文本颜色 Customize the Tab Indicator 定义标签指示器 You should also read 你还应该读 Styles and Themes 样式和主题…
Managing the Activity Lifecycle 管理activity的生命周期 Dependencies and prerequisites 依赖关系和先决条件 How to create an Android project (see Creating an Android Project) 如何创建一个Android项目(请看Creating an Android Project) You should also read 你还需要阅读 Activities As a use…
Pausing and Resuming an Activity 暂停和恢复一个activity This lesson teaches you to 这节课教给你 Pause Your Activity 暂停你的Activity Resume Your Activity 恢复你的Activity You should also read 你还应该阅读 Activities During normal app use, the foreground activity is sometimes o…
Running Your App If you followed the previous lesson to create an Android project, it includes a default set of "Hello World" source files that allow you to immediately run the app. 如果你跟着前面的课程创建了一个Android项目,这个项目包括一系列默认的"Hello World"资源文…
Creating an Android Project 创建一个Android项目 An Android project contains all the files that comprise the source code for your Android app. The Android SDK tools make it easy to start a new Android project with a set of default project directories and fi…