CommonsWare Android Components或CWAC是一個開源組件庫,能夠用于解決Android開發中的各種解決方案問題。每一個CWAC組件都可以單獨打包成一個微小的JAR文件,方便您把它添加到你的項目中。
當前提供的CWAC組件和它們的github倉庫如下:
- cwac-adapter: 提供了一個AdapterWrapper,一個簡單的封裝類,默認情況下,代表所有ListAdapter的方法來包裝ListAdapter。
- cwac-bus: 提供一組類來實現一個內部應用程序消息總線。這個組件專門針對服務與Activitie之間的通信,尤其是當Activitie可以在屏幕上旋轉變換時。
- cwac-cache: 提供一組類用于為Android應用程序提供緩存服務。
- cwac-custmenu: 演示如何創建一個自定義的選項菜單,和一個Activity來配置菜單的選擇順序,這些順序在運行期才會被應用。
- cwac-endless: Provides the EndlessAdapter, a wrapper for an existing ListAdapter that adds "endless list" capability. When the user scrolls to the bottom of the list, if there is more data for this list to be retrieved, your code gets invoked in a background thread to fetch the new rows, which then get seamlessly attached to the bottom of the list.
- cwac-merge: Provides the MergeAdapter, a ListAdapter that blends multiple Views or ListAdapters into a single ListAdapter. Use this for section headings, blending multiple sources of data together, etc.
- cwac-mmcursor: Provides MutableMatrixCursor, a variation on the Android built-in MatrixCursor, but one that supports removing rows in addition to adding them.
- cwac-sacklist: Provides SackOfViewsAdapter, which accepts a list of View objects and presents them in a ListAdapter.
- cwac-task: Provides AsyncTaskEx, a variation on the Android built-in AsyncTask class, but one that offers multiple threads processing tasks in parallel and an arbitrary number of pending tasks.
- cwac-thumbnail: Provides support for ListViews having thumbnail images in their rows, with those images being loaded from URLs and cached transparently in the background. Also offers a ThumbnailActivity as a subclass of ListActivity for further simplifiying thumbnail management.
- cwac-wakeful: Provides the WakefulIntentService, a refinement of the IntentService that keeps the device awake while background tasks are being processed. This is useful for work to be scheduled via the AlarmManager. </OL>
<DIV class=date>收錄時間:2011-08-25 10:14:40</DIV>
本文由用戶 碼頭工人自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!