Android 組件庫 CWAC

openkk 12年前發布 | 35K 次閱讀 Android Android開發 移動開發

CommonsWare Android Components (CWAC) 是一個開源的 Android 組件庫,用來解決 Android 開發中各個方面的常見問題,每個 CWAC 組件打包成一個獨立的 jar 文件。具體如下:

  • cwac-adapter: Provides an AdapterWrapper, a simple wrapper class that, by default, delegates all ListAdapter methods to a wrapped ListAdapter. The idea is that you can extend AdapterWrapper and only override certain ListAdapter methods, with the rest handled via the wrapped adapter.
  • cwac-anddown: Provides support for Markdown syntax in Android, such as a JNI wrapper around the sundown Markdown to HTML converter.
  • cwac-colormixer: Provides a simple color mixer widget, dialog, activity, and preference.
  • 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-loaderex: Provides an implementation of the Loader framework for SQLite databases.
  • cwac-locpoll: Provides a service that will find the current location and feed it back to you, designed to be triggered by an alarm, where the service will keep the device awake.
  • 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-richedit: Provides rich text editing widgets to add to your app, to allow users to enter formatted text (bold, italic, etc.).
  • cwac-sacklist: Provides SackOfViewsAdapter, which accepts a list of View objects and presents them in a ListAdapter.
  • cwac-touchlist: Provides a drag-and-dropListView drop-in replacement.
  • 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.

項目主頁:http://www.baiduhome.net/lib/view/home/1339728056912

 本文由用戶 openkk 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!