CommonsWare Android Components或CWAC是一个开源组件库,能够用于解决Android开发中的各种解决方案问题。每一个CWAC组件都可以单独打包成一个微小的JAR文件,方便您把它添加到你的项目中。

该项目主页:http://commonsware.com/cwac

当前提供的CWAC组件和它们的github仓库如下:

  1. cwac-adapter: 提供了一个AdapterWrapper,一个简单的封装类,默认情况下,代表所有ListAdapter的方法来包装ListAdapter。
  2. cwac-bus: 提供一组类来实现一个内部应用程序消息总线。这个组件专门针对服务与Activitie之间的通信,尤其是当Activitie可以在屏幕上旋转变换时。
  3. cwac-cache: 提供一组类用于为Android应用程序提供缓存服务。
  4. cwac-custmenu: 演示如何创建一个自定义的选项菜单,和一个Activity来配置菜单的选择顺序,这些顺序在运行期才会被应用。
  5. 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.
  6. 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.
  7. cwac-mmcursor: Provides MutableMatrixCursor, a variation on the Android built-in MatrixCursor, but one that supports removing rows in addition to adding them.
  8. cwac-sacklist: Provides SackOfViewsAdapter, which accepts a list of View objects and presents them in a ListAdapter.
  9. 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.
  10. 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.
  11. 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.

更多相关文章

  1. Android开发者指南(18) ―― Web Apps Overview
  2. 一步一步学android之布局管理器——RelativeLayout
  3. android加载gif图片的动画库
  4. Android系统架构介绍
  5. Android(安卓)架构组件之---LifeCycle 详解
  6. Java集合 && Android提供的集合
  7. Android(安卓)中文api (81)——InputMethod [输入法]
  8. Android应用程序Click事件与Touch事件处理
  9. Android(安卓)系统提供媒体库 URI 与 数据库的对应关系

随机推荐

  1. Android进阶(十)Android 发邮件
  2. Android中的13种Drawable小结
  3. 使用android快速开发框架afinal 开发andr
  4. android中的资源,资源与xml文件
  5. 用fastboot大刷Android ~换个方法刷andro
  6. android待机详细结合代码分析(二)
  7. Android 核心分析(12) -----Android GEWS
  8. Android 连接WIF获取的信息剖析
  9. Qt on Android:让 Qt Widgets 和 Qt Quick
  10. Android(安卓)layout 优化:使用include和m