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

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。