使用組件構建Android應用程序

原文鏈接:http://android.eoe.cn/topic/android_sdk

 

應用程序組件

Android's application framework lets you create extremely rich and innovative apps using a set of reusable components. This section explains how Android apps work and how you use components to build them.

通過一組可重用的組件,Android的應用程序框架使您可以創建功能豐富, 充滿創新的應用程序,本節將介紹Android應用是如何工作的, 以及教您如何使用組件來構建Android應用程序。

訓練

管理Activity的生命週期


This class explains important lifecycle callback methods that each Activity instance receives and how you can use them so your activity does what the user expects and does not consume system resources when your activity doesn't need them.

這節課將介紹每個Activty實例含有的重要的生命週期回調方法,使用它們,你可以使你的activty做用戶希望activty做的事情。同時,掌握了這些回調方法,當你的activty不需要他們的時候,你可以使他們儘量少的或者不耗費系統資源。

Building a Dynamic UI with Fragments-使用Fragment創建一個動態的UI


This class shows you how to create a dynamic user experience with fragments and optimize your app's user experience for devices with different screen sizes, all while continuing to support devices running versions as old as Android 1.6.

這節課向您介紹怎樣使用Fragment來創建一個動態的用戶交互界面,怎樣優化您的應用,是您的應用支持不同大小的屏幕,這些知識支持android1.6 版本以上的系統

Content Provider


This class covers some common ways you can send and receive content between applications using Intent APIs and the ActionProvider object.

這節課介紹一些使您在使用 Intent Api 和ActionProvider 的應用程序之間可以發送和接受Content的通用方法
這個類包括一些常見的方式,您可以發送和接收使用意向API和ActionProvider的對象的應用程序之間的內容。

博客文章

Using DialogFragments-使用DialogFragments

  • * In this post, I’ll show how to use DialogFragments with the v4 support library (for backward compatibility on pre-Honeycomb devices) to show a simple edit dialog and return a result to the calling Activity using an interface. 在本文,我將向您展示怎麼通過V4支持庫使用DialogFragments(兼容Android 3.0之前的版本)來顯示一個簡單的編輯對話框並通過一個接口返回結果給之前調用他的Activity.

Fragments For All-通用的Fragments

  • * Today we’ve released a static library that exposes the same Fragments API (as well as the new LoaderManager and a few other classes) so that applications compatible with Android 1.6 or later can use fragments to create tablet-compatible user interfaces. 今天我們發佈了一個靜態庫,這個庫提供了和3.0版本相同的Fragments API(也包括新的LoaderManager和一些其他的類),通過他們,Android 1.6或更高版本可以運行使用fragments 創建的含有 平板級界面的應用.

Multithreading for Performance-多線程展示

  • * A good practice in creating responsive applications is to make sure your main UI thread does the minimum amount of work. Any potentially long task that may hang your application should be handled in a different thread. 一個好的交換應用需要確保您的主UI線程做做少的工作.然後潛在的可能是應用掛起的耗時任務應該在其他線程中處理
 
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章