Android官方入門文檔

來源:互聯網
上載者:User

標籤:android   android應用   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

Android官方入門文檔

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.