Android官方入门文档

Android官方入门文档

欢迎来到为Android开发者的培训。在这里,你会发现套课中,描述了如何实现代码示例中的应用程序,你可以重复使用一个特定的任务类。类被组织成可以在左侧导航的顶层看到几个组。
这第一组,入门,教你最基本的Android应用程序的开发。如果你是一个新的Android应用程序开发者,你应该按照顺序完成这些课程。

如果你认为你可能更喜欢通过互动视频培训学习的基础知识,看看这个预告片在Android开发的基础的一门课程。

Getting Started

Welcome to Training for Android developers. Here you‘ll find sets of lessons within classes that describe how to accomplish a specific task with code samples you can re-use in your app. Classes are organized into several groups you can see at the top-level of the left navigation.

This first group, Getting Started, teaches you the bare essentials for Android app development. If you‘re a new Android app developer, you should complete each of these classes in order.

If you think you might prefer to learn the basics through interactive video training, check out this trailer for a course in the fundamentals of Android development.

建立你的第一个应用程序

当你安装了Android SDK,开始与这个班学习Android应用程序开发的基础知识。
 创建一个Android项目
 运行应用程序
 构建一个简单的用户界面
 开始另一个活动

Building Your First App

After you‘ve installed the Android SDK, start with this class to learn the basics about Android app development.
 Creating an Android Project
 Running Your Application
 Building a Simple User Interface
 Starting Another Activity

添加操作栏

操作栏是最重要的设计元素,你可以为你的应用程序的活动实施中的一个。虽然先用API等级11介绍,您可以使用支持库,包括在运行Android2.1或更高版本的设备操作栏。
 设置的操作栏
 添加动作按钮
 造型操作栏
 叠加的操作栏

Adding the Action Bar

The action bar is one of the most important design elements you can implement for your app‘s activities. Although first introduced with API level 11, you can use the Support Library to include the action bar on devices running Android 2.1 or higher.
 Setting Up the Action Bar
 Adding Action Buttons
 Styling the Action Bar
 Overlaying the Action Bar

支持不同设备

如何建立与提供使用单个APK多个设备外形优化用户体验替代资源的应用程序。
 支持不同的语言
 支持不同的屏幕
 支持不同平台版本

Supporting Different Devices

How to build your app with alternative resources that provide an optimized user experience on multiple device form factors using a single APK.
 Supporting Different Languages
 Supporting Different Screens
 Supporting Different Platform Versions

管理活动生命周期

如何Android的活动,生活和死亡,以及如何创建通过实施生命周期回调方法的无缝用户体验。
 启动一个活动
 暂停和恢复的活动
 停止和重新启动的活动
 再造一个活动

Managing the Activity Lifecycle

How Android activities live and die and how to create a seamless user experience by implementing lifecycle callback methods.
 Starting an Activity
 Pausing and Resuming an Activity
 Stopping and Restarting an Activity
 Recreating an Activity

构建动态UI与片段

如何建立一个用户界面,为你的应用程序,非常灵活,可以在大屏幕和小屏幕必要建立一个单一的APK为手机和平板电脑更受约束的一套UI组件存在多个UI组件。
 创建一个片段
 构建灵活的UI
 与其他碎片沟通

Building a Dynamic UI with Fragments

How to build a user interface for your app that is flexible enough to present multiple UI components on large screens and a more constrained set of UI components on smaller screens—essential for building a single APK for both phones and tablets.
 Creating a Fragment
 Building a Flexible UI
 Communicating with Other Fragments

保存数据

如何保存数据的设备上,无论是临时文件,下载的应用程序资产,用户的媒体,结构化数据,还是其他什么东西。
 保存键值设置
 保存文件
 在SQL数据库保存数据

Saving Data

How to save data on the device, whether it‘s temporary files, downloaded app assets, user media, structured data, or something else.
 Saving Key-Value Sets
 Saving Files
 Saving Data in SQL Databases

与其他应用程序进行交互

如何构建一个利用设备上可用来进行高级用户任务的其他应用程序,如捕捉照片或在地图上查看地址的用户体验。
 发送用户到另一个应用程序
 得到一个结果从活动
 允许其他应用程序来开始你的活动

Interacting with Other Apps

How to build a user experience that leverages other apps available on the device to perform advanced user tasks, such as capture a photo or view an address on a map.
 Sending the User to Another App
 Getting a Result from the Activity
 Allowing Other Apps to Start Your Activity

本文翻译自:https://developer.android.com/training/index.html

时间: 2024-10-02 18:20:54

Android官方入门文档的相关文章

Android官方入门文档[1]创建一个Android项目

Android官方入门文档[1]创建一个Android项目 创建一个Android项目 这节课教你1.创建与Android Studio中的一个项目2.创建使用命令行工具项目 你也应该阅读?管理项目 Creating an Android Project This lesson teaches you to1.Create a Project with Android Studio2.Create a Project with Command Line Tools You should also

Android官方入门文档[17]构建灵活的UI

Android官方入门文档[17]构建灵活的UI Building a Flexible UI构建灵活的UI This lesson teaches you to1.Add a Fragment to an Activity at Runtime2.Replace One Fragment with Another You should also read?Fragments?Supporting Tablets and Handsets这节课教你1.在运行时新增一个片段给一个活动2.用另一片段

Android官方入门文档[16]创建一个Fragment代码片段

Android官方入门文档[16]创建一个Fragment代码片段 Creating a Fragment创建一个Fragment代码片段 This lesson teaches you to1.Create a Fragment Class2.Add a Fragment to an Activity using XML You should also read?Fragments 这节课教你1.创建一个Fragment代码片段类2.使用XML来添加一个Fragment代码片段给一个活动 你也

Android官方入门文档[3]构建一个简单的用户界面

Android官方入门文档[3]构建一个简单的用户界面 Building a Simple User Interface构建一个简单的用户界面 This lesson teaches you to1.Create a Linear Layout2.Add a Text Field3.Add String Resources4.Add a Button5.Make the Input Box Fill in the Screen Width You should also read?Layouts

Android官方入门文档[10]支持不同的屏幕

Android官方入门文档[10]支持不同的屏幕 Supporting Different Screens支持不同的屏幕 This lesson teaches you to1.Create Different Layouts2.Create Different Bitmaps You should also read?Designing for Multiple Screens?Providing Resources?Iconography design guide 这节课教你1.创建不同的布

Android官方入门文档[2]运行你的应用程序

Android官方入门文档[2]运行你的应用程序 Running Your App运行你的应用程序 This lesson teaches you to1.Run on a Real Device2.Run on the Emulator You should also read?Using Hardware Devices?Managing AVDs with AVD Manager?Managing Projects 这节课教你1.运行在真实设备2.运行在模拟器 你也应该阅读?使用硬件设备?

Android官方入门文档[6]添加Action按钮

Android官方入门文档[6]添加Action按钮 Adding Action Buttons添加Action按钮 This lesson teaches you to1.Specify the Actions in XML2.Add the Actions to the Action Bar3.Respond to Action Buttons4.Add Up Button for Low-level Activities You should also read?Providing Up

Android官方入门文档[18]与其他碎片通信

Android官方入门文档[18]与其他碎片通信 Communicating with Other Fragments与其他碎片通信 This lesson teaches you to1.Define an Interface2.Implement the Interface3.Deliver a Message to a Fragment You should also read?Fragments 这节课教你1.定义一个接口2.实现接口3.传递一个消息给一个代码片段 你也应该阅读?片段 T

Android官方入门文档[8]重叠操作栏

Android官方入门文档[8]重叠操作栏 Overlaying the Action Bar重叠操作栏 This lesson teaches you to1.Enable Overlay Mode 1.For Android 3.0 and higher only 2.For Android 2.1 and higher 2.Specify Layout Top-margin You should also read?Styles and Themes 这节课教你1.启用重叠模式 1.对An

Android官方入门文档[9]支持不同的语言

Android官方入门文档[9]支持不同的语言 Supporting Different Languages支持不同的语言 This class teaches you to1.Create Locale Directories and String Files2.Use the String Resources You should also read?Localization Checklist?Localization with Resources 该课程教你1.创建区域设置目录和文件的字