日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問(wèn) 生活随笔!

生活随笔

當(dāng)前位置: 首頁(yè) > 编程资源 > 编程问答 >内容正文

编程问答

android一些可用实例2014收藏

發(fā)布時(shí)間:2024/1/8 编程问答 31 豆豆
生活随笔 收集整理的這篇文章主要介紹了 android一些可用实例2014收藏 小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

目前包括:

Android開源項(xiàng)目第一篇——個(gè)性化控件(View)篇
包括ListView、ActionBar、Menu、ViewPager、Gallery、GridView、ImageView、ProgressBar、TextView、ScrollView、TimeView、TipView、FlipView、ColorPickView、GraphView、UI Style、其他
Android開源項(xiàng)目第二篇——工具庫(kù)篇
包括依賴注入、圖片緩存、網(wǎng)絡(luò)相關(guān)、數(shù)據(jù)庫(kù)ORM工具包、Android公共庫(kù)、高版本向低版本兼容庫(kù)、多媒體、事件總線、傳感器、安全、插件化、文件、其他
Android開源項(xiàng)目第三篇——優(yōu)秀項(xiàng)目篇
比較有意思的完整的Android項(xiàng)目
Android開源項(xiàng)目第四篇——開發(fā)及測(cè)試工具篇
包括開發(fā)效率工具、開發(fā)自測(cè)相關(guān)、測(cè)試工具、開發(fā)及編譯環(huán)境、其他
Android開源項(xiàng)目第五篇——優(yōu)秀個(gè)人和團(tuán)體篇
樂(lè)于分享并且有一些很不錯(cuò)的開源項(xiàng)目的個(gè)人和組織,包括JakeWharton、Chris Banes、Koushik Dutta等大牛

第一部分 個(gè)性化控件(View)
主要介紹那些不錯(cuò)個(gè)性化的View,包括ListView、ActionBar、Menu、ViewPager、Gallery、GridView、ImageView、ProgressBar、TextView、ScrollView、TimeView、TipView、FlipView、ColorPickView、GraphView、UI Style等等。
、其他

一、ListView
android-pulltorefresh
一個(gè)強(qiáng)大的拉動(dòng)刷新開源項(xiàng)目,支持各種控件下拉刷新,ListView、ViewPager、WevView、ExpandableListView、GridView、ScrollView、Horizontal ScrollView、Fragment上下左右拉動(dòng)刷新,比下面johannilsson那個(gè)只支持ListView的強(qiáng)大的多。并且它實(shí)現(xiàn)的下拉刷新ListView在item不足一屏情況下也不會(huì)顯示刷新提示,體驗(yàn)更好。
項(xiàng)目地址:https://github.com/chrisbanes/Android-PullToRefresh
Demo地址:https://github.com/Trinea/TrineaDownload/blob/master/pull-to-refreshview-demo.apk?raw=true
APP示例:新浪微博各個(gè)頁(yè)面

android-pulltorefresh-listview
下拉刷新ListView
項(xiàng)目地址:https://github.com/johannilsson/android-pulltorefresh
Demo地址:https://github.com/Trinea/TrineaDownload/blob/master/pull-to-refresh-listview-demo.apk?raw=true
PS:這個(gè)被很多人使用的項(xiàng)目實(shí)際有不少bug,推薦使用上面的android-pulltorefresh

DropDownListView
下拉刷新及滑動(dòng)到底部加載更多ListView
項(xiàng)目地址:https://github.com/Trinea/AndroidCommon
Demo地址:https://play.google.com/store/apps/details?id=cn.trinea.android.demo
文檔介紹:http://www.trinea.cn/android/dropdown-to-refresh-and-bottom-load-more-listview/

DragSortListView
拖動(dòng)排序的ListView,同時(shí)支持ListView滑動(dòng)item刪除,各個(gè)Item高度不一、單選、復(fù)選、CursorAdapter做為適配器、拖動(dòng)背景變化等
項(xiàng)目地址:https://github.com/bauerca/drag-sort-listview
Demo地址:https://play.google.com/store/apps/details?id=com.mobeta.android.demodslv
APP示例:Wordpress Android

SwipeListView
支持定義ListView左右滑動(dòng)事件,支持左右滑動(dòng)位移,支持定義動(dòng)畫時(shí)間
項(xiàng)目地址:https://github.com/47deg/android-swipelistview
Demo地址:https://play.google.com/store/apps/details?id=com.fortysevendeg.android.swipelistview
APP示例:微信

Android-SwipeToDismiss
滑動(dòng)Item消失ListView
項(xiàng)目地址:https://github.com/romannurik/Android-SwipeToDismiss
支持3.0以下版本見:https://github.com/JakeWharton/SwipeToDismissNOA
Demo地址:https://github.com/JakeWharton/SwipeToDismissNOA/SwipeToDismissNOA.apk/qr_code

PinnedHeaderExpandableListView
首先它是一個(gè)ExpandableListView,但是它的頭部可以固定,其次,在它的上面還有一個(gè)頭部可以來(lái)回伸縮
項(xiàng)目地址:https://github.com/singwhatiwanna/PinnedHeaderExpandableListView
APP示例:百度手機(jī)衛(wèi)士垃圾清理界面
效果圖:Renderings

StickyListHeaders
GroupName滑動(dòng)到頂端時(shí)會(huì)固定不動(dòng)直到另外一個(gè)GroupName到達(dá)頂端的ExpandListView,支持快速滑動(dòng),支持Android2.3及以上
項(xiàng)目地址:https://github.com/emilsjolander/StickyListHeaders
APP示例:Android 4.0聯(lián)系人
效果圖:Renderings

pinned-section-listview
GroupName滑動(dòng)到頂端時(shí)會(huì)固定不動(dòng)直到另外一個(gè)GroupName到達(dá)頂端的ExpandListView
項(xiàng)目地址:https://github.com/beworker/pinned-section-listview
效果圖:Renderings

PinnedHeaderListView
GroupName滑動(dòng)到頂端時(shí)會(huì)固定不動(dòng)直到另外一個(gè)GroupName到達(dá)頂端的ExpandListView
項(xiàng)目地址:https://github.com/JimiSmith/PinnedHeaderListView

QuickReturnHeader
ListView/ScrollView的header或footer,當(dāng)向下滾動(dòng)時(shí)消失,向上滾動(dòng)時(shí)出現(xiàn)
項(xiàng)目地址:https://github.com/ManuelPeinado/QuickReturnHeader
Demo地址:https://github.com/Trinea/TrineaDownload/blob/master/quick-return-header-demo.apk?raw=true
APP示例:google plus

IndexableListView
ListView右側(cè)會(huì)顯示item首字母快捷索引,點(diǎn)擊可快速滑動(dòng)到某個(gè)item
項(xiàng)目地址:https://github.com/woozzu/IndexableListView
Demo地址:https://github.com/Trinea/TrineaDownload/blob/master/indexable-listview.apk?raw=true
APP示例:微信通訊錄、小米聯(lián)系人

CustomFastScrollView
ListView快速滑動(dòng),同時(shí)屏幕中間PopupWindows顯示滑動(dòng)到的item內(nèi)容或首字母
項(xiàng)目地址:https://github.com/nolanlawson/CustomFastScrollViewDemo
效果圖:Renderings

Android-ScrollBarPanel
ListView滑動(dòng)時(shí)固定的Panel指示顯示在scrollbar旁邊
項(xiàng)目地址:https://github.com/rno/Android-ScrollBarPanel
效果展示:https://github.com/rno/Android-ScrollBarPanel/raw/master/demo_capture.png

SlideExpandableListView
用戶點(diǎn)擊listView item滑出固定區(qū)域,其他item的區(qū)域收縮
項(xiàng)目地址:https://github.com/tjerkw/Android-SlideExpandableListView
Demo地址:https://github.com/Trinea/TrineaDownload/blob/master/slide-expandable-listView-demo.apk?raw=true

JazzyListView
ListView及GridView item以特殊動(dòng)畫效果進(jìn)入屏幕,效果包括grow、cards、curl、wave、flip、fly等等
項(xiàng)目地址:https://github.com/twotoasters/JazzyListView
Demo地址:https://play.google.com/store/apps/details?id=com.twotoasters.jazzylistview.sample
效果展示:http://lab.hakim.se/scroll-effects/

ListViewAnimations
帶Item顯示動(dòng)畫的ListView,動(dòng)畫包括底部飛入、其他方向斜飛入、下層飛入、漸變消失、滑動(dòng)刪除等
項(xiàng)目地址:https://github.com/nhaarman/ListViewAnimations
Demo地址:https://play.google.com/store/apps/details?id=com.haarman.listviewanimations
APP示例:Google plus、Google Now卡片式進(jìn)入、小米系統(tǒng)中應(yīng)用商店、聯(lián)系人、游戲中心、音樂(lè)、文件管理器的ListView、Ultimate、Light Flow Lite、TreinVerkeer、Running Coach、Pearl Jam Lyrics、Calorie Chart、Car Hire、Super BART、DK FlashCards、Counter Plus、Voorlees Verhaaltjes 2.0

DevsmartLib-Android
橫向ListView
項(xiàng)目地址:https://github.com/dinocore1/DevsmartLib-Android
Demo地址:https://github.com/Trinea/TrineaDownload/blob/master/horizontal-listview-demo.apk?raw=true

TwoWayView
橫向ListView的效果,繼承自AdapterView
項(xiàng)目地址:https://github.com/lucasr/twoway-view

HorizontalVariableListView
支持Item寬度不一致的ListView
項(xiàng)目地址:https://github.com/sephiroth74/HorizontalVariableListView

LinearListView
用LinearLayout實(shí)現(xiàn)的ListView,可解決多個(gè)ListView并存等問(wèn)題。目前自己也有需要,等親自嘗試過(guò)后會(huì)再具體介紹
項(xiàng)目地址:https://github.com/frankiesardo/LinearListView

MultiChoiceAdapter
支持多選的ListView Adapter
項(xiàng)目地址:https://github.com/ManuelPeinado/MultiChoiceAdapter
Demo地址:https://play.google.com/store/apps/details?id=com.manuelpeinado.multichoiceadapter.demo

EnhancedListView
支持橫向滑動(dòng)刪除列表項(xiàng)以及撤銷刪除的ListView,該項(xiàng)目的前身是SwipeToDismissUndoList
項(xiàng)目地址:https://github.com/timroes/EnhancedListView
Demo地址:https://play.google.com/store/apps/details?id=de.timroes.android.listviewdemo&rdid=de.timroes.android.listviewdemo

ListBuddies
自動(dòng)滾動(dòng)的雙列ListView ,兩個(gè)ListView滾動(dòng)速度不一致,有視差效果
項(xiàng)目地址:https://github.com/jpardogo/ListBuddies
Demo地址:https://play.google.com/store/apps/details?id=com.jpardogo.android.listbuddies
效果展示:Renderings

PullToZoomInListView
滑動(dòng)ListView時(shí)使其HeaderView跟隨滑動(dòng)縮放
項(xiàng)目地址:https://github.com/matrixxun/PullToZoomInListView
效果展示:Renderings

二、ActionBar
ActionBarSherlock
為Android所有版本提供統(tǒng)一的ActionBar,解決4.0以下ActionBar的適配問(wèn)題
項(xiàng)目地址:https://github.com/JakeWharton/ActionBarSherlock
Demo地址:https://play.google.com/store/apps/details?id=com.actionbarsherlock.sample.demos
APP示例:太多了。。現(xiàn)在連google都在用

ActionBar-PullToRefresh
下拉刷新,ActionBar出現(xiàn)加載中提示
項(xiàng)目地址:https://github.com/chrisbanes/ActionBar-PullToRefresh
Demo地址:https://play.google.com/store/apps/details?id=uk.co.senab.actionbarpulltorefresh.samples.stock
APP示例:Gmail,Google plus,知乎等

FadingActionBar
ListView向下滾動(dòng)逐漸顯現(xiàn)的ActionBar
項(xiàng)目地址:https://github.com/ManuelPeinado/FadingActionBar
Demo地址:https://play.google.com/store/apps/details?id=com.manuelpeinado.fadingactionbar.demo
APP示例:google music,知乎

NotBoringActionBar
google music下拉收縮的ActionBar
項(xiàng)目地址:https://github.com/flavienlaurent/NotBoringActionBar
Demo地址:http://flavienlaurent.com/blog/2013/11/20/making-your-action-bar-not-boring/
APP示例:Google音樂(lè)

RefreshActionItem
帶進(jìn)度顯示和刷新按鈕的ActionBar
項(xiàng)目地址:https://github.com/ManuelPeinado/RefreshActionItem
Demo地址:https://play.google.com/store/apps/details?id=com.manuelpeinado.refreshactionitem.demo
APP示例:The New York Times,DevAppsDirect.

GlassActionBar
類似玻璃的有一定透明度的ActionBar
項(xiàng)目地址:https://github.com/ManuelPeinado/GlassActionBar
Demo地址:https://play.google.com/store/apps/details?id=com.manuelpeinado.glassactionbardemo
APP示例:google music

三、Menu
MenuDrawer
滑出式菜單,通過(guò)拖動(dòng)屏幕邊緣滑出菜單,支持屏幕上下左右劃出,支持當(dāng)前View處于上下層,支持Windows邊緣、ListView邊緣、ViewPager變化劃出菜單等。
項(xiàng)目地址:https://github.com/SimonVT/android-menudrawer
Demo地址:http://simonvt.github.io/android-menudrawer/
APP示例:Gmail、Google Music等大部分google app

SlidingMenu
滑出式菜單,通過(guò)拖動(dòng)屏幕邊緣滑出菜單,支持屏幕左右劃出,支持菜單zoom、scale、slide up三種動(dòng)畫樣式出現(xiàn)。
項(xiàng)目地址:https://github.com/jfeinstein10/SlidingMenu
Demo地址:https://play.google.com/store/apps/details?id=com.slidingmenu.example
APP示例:Foursquare, LinkedIn, Zappos, Rdio, Evernote Food, Plume, VLC for Android, ESPN ScoreCenter, MLS MatchDay, 9GAG, Wunderlist 2, The Verge, MTG Familiar, Mantano Reader, Falcon Pro (BETA), MW3 Barracks
MenuDrawer和SlidingMenu比較:SlidingMenu支持菜單動(dòng)畫樣式出現(xiàn),MenuDrawer支持菜單view處于內(nèi)容的上下層

ArcMenu
支持類似Path的左下角動(dòng)畫旋轉(zhuǎn)菜單及橫向劃出菜單、圓心彈出菜單
項(xiàng)目地址:https://github.com/daCapricorn/ArcMenu
APP示例:Path
效果圖:Renderings
https://dl.dropboxusercontent.com/u/11369687/preview1.png
https://dl.dropboxusercontent.com/u/11369687/raymenu.png

android-satellite-menu
類似Path的左下角動(dòng)畫旋轉(zhuǎn)菜單
項(xiàng)目地址:https://github.com/siyamed/android-satellite-menu
Demo地址:https://github.com/Trinea/TrineaDownload/blob/master/satellite-menu-demo.apk?raw=true
APP示例:Path

radial-menu-widget
圓形菜單,支持二級(jí)菜單
項(xiàng)目地址:https://code.google.com/p/radial-menu-widget/
效果圖:http://farm8.staticflickr.com/7377/11621125154_d1773c2dcc_o.jpg

Android Wheel Menu
圓形旋轉(zhuǎn)選取菜單
項(xiàng)目地址:https://github.com/anupcowkur/Android-Wheel-Menu
效果圖:Renderings

FoldingNavigationDrawer
滑動(dòng)并以折疊方式打開菜單
項(xiàng)目地址:https://github.com/tibi1712/FoldingNavigationDrawer-Android
Demo地址:https://play.google.com/store/apps/details?id=com.ptr.folding.sample
效果圖:Renderings

AndroidResideMenu
仿 Dribbble 的邊欄菜單
項(xiàng)目地址:https://github.com/SpecialCyCi/AndroidResideMenu
效果圖:Renderings

CircularFloatingActionMenu
一個(gè)可定制的圓形的浮動(dòng)菜單控件,類似于Path的圓形菜單。這個(gè)控件的可定制性更強(qiáng),可以很容易的定制菜單出現(xiàn)消失時(shí)的動(dòng)畫,起始角度和半徑。
項(xiàng)目地址:https://github.com/oguzbilgener/CircularFloatingActionMenu
Demo地址:https://github.com/oguzbilgener/CircularFloatingActionMenu/tree/master/samples
效果圖:Renderings

四、ViewPager 、Gallery
Android-ViewPagerIndicator
配合ViewPager使用的Indicator,支持各種位置和樣式
項(xiàng)目地址:https://github.com/JakeWharton/Android-ViewPagerIndicator
Demo地址:https://play.google.com/store/apps/details?id=com.viewpagerindicator.sample
APP示例:太多了。。

JazzyViewPager
支持Fragment切換動(dòng)畫的ViewPager,動(dòng)畫包括轉(zhuǎn)盤、淡入淡出、翻頁(yè)、層疊、旋轉(zhuǎn)、方塊、翻轉(zhuǎn)、放大縮小等
項(xiàng)目地址:https://github.com/jfeinstein10/JazzyViewPager
Demo地址:https://github.com/jfeinstein10/JazzyViewPager/blob/master/JazzyViewPager.apk?raw=true
效果類似桌面左右切換的各種效果,不過(guò)桌面并非用ViewPager實(shí)現(xiàn)而已

Android-DirectionalViewPager
支持橫向和縱向(垂直)的ViewPager
項(xiàng)目地址:https://github.com/JakeWharton/Android-DirectionalViewPager
Demo地址:https://market.android.com/details?id=com.directionalviewpager.sample

android-pulltorefresh
支持下拉刷新的ViewPager
項(xiàng)目地址:https://github.com/chrisbanes/Android-PullToRefresh
Demo地址:https://github.com/Trinea/TrineaDownload/blob/master/pull-to-refreshview-demo.apk?raw=true
APP示例:新浪微博各個(gè)頁(yè)面

FancyCoverFlow
支持Item切換動(dòng)畫效果的類似Gallery View
項(xiàng)目地址:https://github.com/davidschreiber/FancyCoverFlow
Demo地址:https://play.google.com/store/apps/details?id=at.technikum.mti.fancycoverflow.samples
效果圖:Renderings

AndroidTouchGallery
支持雙擊或雙指縮放的Gallery(用ViewPager實(shí)現(xiàn)),相比下面的PhotoView,在被放大后依然能滑到下一個(gè)item,并且支持直接從url和文件中獲取圖片,
項(xiàng)目地址:https://github.com/Dreddik/AndroidTouchGallery
Demo地址:https://github.com/Trinea/TrineaDownload/blob/master/touch-gallery-demo.apk?raw=true
APP示例:類似微信中查看聊天記錄圖片時(shí)可雙擊放大,并且放大情況下能正常左右滑動(dòng)到前后圖片

Android Auto Scroll ViewPager
Android自動(dòng)滾動(dòng) 輪播循環(huán)的ViewPager
項(xiàng)目地址:https://github.com/Trinea/android-auto-scroll-view-pager
Demo地址:https://play.google.com/store/apps/details?id=cn.trinea.android.demo
文檔介紹:http://www.trinea.cn/android/auto-scroll-view-pager/

Salvage view
帶View緩存的Viewpager PagerAdapter,很方便使用
項(xiàng)目地址:https://github.com/JakeWharton/salvage

Android PagerSlidingTabStrip
配合ViewPager使用的Indicator,支持ViewPager Scroll時(shí)Indicator聯(lián)動(dòng)
項(xiàng)目地址:https://github.com/astuetz/PagerSlidingTabStrip
Demo地址:https://play.google.com/store/apps/details?id=com.astuetz.viewpager.extensions.sample

ViewPager3D
ViewPager3D效果
項(xiàng)目地址:https://github.com/inovex/ViewPager3D

AnimaTabsview
仿網(wǎng)易云音樂(lè)標(biāo)簽切換的動(dòng)畫,帶透明小三角
項(xiàng)目地址: https://github.com/wuyexiong/transparent-over-animtabsview
在線演示:http://v.youku.com/v_show/id_XNzA4MjY5NjA0.html

五、GridView
StaggeredGridView
允許非對(duì)齊行的GridView,類似Pinterest的瀑布流,并且跟ListView一樣自帶View緩存,繼承自ViewGroup
項(xiàng)目地址:https://github.com/maurycyw/StaggeredGridView
Demo地址:https://github.com/Trinea/TrineaDownload/blob/master/staggered-gridview-demo.apk?raw=true
APP示例:Pinterest等

AndroidStaggeredGrid
允許非對(duì)齊行的GridView,類似Pinterest的瀑布流,繼承自AbsListView
項(xiàng)目地址:https://github.com/etsy/AndroidStaggeredGrid
APP示例:Pinterest等

PinterestLikeAdapterView
允許非對(duì)齊行的GridView,類似Pinterest的瀑布流,允許下拉刷新
項(xiàng)目地址:https://github.com/GDG-Korea/PinterestLikeAdapterView
APP示例:Pinterest等

DraggableGridView
Item可拖動(dòng)交換位置的GridView,實(shí)際是自己繼承ViewGroup實(shí)現(xiàn),類似桌面的單屏效果,可屏幕自動(dòng)上下滾動(dòng)進(jìn)行Item移動(dòng)交換,多屏效果見下面PagedDragDropGrid
項(xiàng)目地址:https://github.com/thquinn/DraggableGridView
Demo地址:https://github.com/thquinn/DraggableGridView/blob/master/bin/DraggableGridViewSample.apk?raw=true

StickyGridHeaders
GroupName滑動(dòng)到頂端時(shí)會(huì)固定不動(dòng)直到另外一個(gè)GroupName到達(dá)頂端的GridView
項(xiàng)目地址:https://github.com/TonicArtos/StickyGridHeaders
效果圖:Renderings

PagedDragDropGrid
Item可拖動(dòng)交換位置、拖動(dòng)刪除的自定義控件,實(shí)際是自己繼承ViewGroup實(shí)現(xiàn),類似桌面的多屏效果,可拖動(dòng)到屏幕邊緣,屏幕自動(dòng)左右滾動(dòng)進(jìn)行Item移動(dòng)交換,可拖動(dòng)進(jìn)行刪除,單屏效果見上面DraggableGridView
項(xiàng)目地址:https://github.com/mrKlar/PagedDragDropGrid
在線演示:http://youtu.be/FYTSRfthSuQ

Android-DraggableGridViewPager
Item可拖動(dòng)交換位置的GridView,實(shí)際是自己繼承ViewGroup實(shí)現(xiàn),類似桌面的多屏效果,可屏幕自動(dòng)左右滾動(dòng)進(jìn)行Item移動(dòng)交換,單屏效果見上面DraggableGridView
項(xiàng)目地址:https://github.com/zzhouj/Android-DraggableGridViewPager
Demo地址:https://github.com/Trinea/trinea-download/blob/master/draggable-grid-viewpager-demo.apk?raw=true

TwoWayGridView
可橫向滾動(dòng)的GridView
項(xiàng)目地址:https://github.com/jess-anders/two-way-gridview

六、ImageView
PhotoView
支持雙擊或雙指縮放的ImageView,在ViewPager等Scrolling view中正常使用,相比上面的AndroidTouchGallery,不僅支持ViewPager,同時(shí)支持單個(gè)ImageView
項(xiàng)目地址:https://github.com/chrisbanes/PhotoView
Demo地址:https://play.google.com/store/apps/details?id=uk.co.senab.photoview.sample
APP示例:photup

android-gif-drawable
支持gif顯示的view,用jni實(shí)現(xiàn)的,編譯生成so庫(kù)后直接xml定義view即可,而且本身不依賴于其他開源項(xiàng)目所以相對(duì)下面的ImageViewEx簡(jiǎn)單的多
項(xiàng)目地址:https://github.com/koral–/android-gif-drawable

ImageViewEx
支持Gif顯示的ImageView
項(xiàng)目地址:https://github.com/frapontillo/ImageViewEx
Demo地址:https://github.com/Trinea/TrineaDownload/blob/master/imageviewex-demo.apk?raw=true
依賴很多,編譯過(guò)程很繁瑣!|_|!

RoundedImageView
帶圓角的ImageView
項(xiàng)目地址:https://github.com/vinc3m1/RoundedImageView
效果圖:Renderings

ColorArt
根據(jù)圖片的均色設(shè)置背景色顯示文字和圖片,類似itune11中效果
項(xiàng)目地址:https://github.com/MichaelEvans/ColorArt
Demo地址:https://github.com/Trinea/TrineaDownload/blob/master/color-art-demo.apk?raw=true

CircleImageView
圓形的ImageView
項(xiàng)目地址:https://github.com/hdodenhof/CircleImageView
效果圖:Renderings

ImageViewZoom
支持放大和平移的ImageView
項(xiàng)目地址:https://github.com/sephiroth74/ImageViewZoom
APP示例:https://play.google.com/store/apps/details?id=com.aviary.android.feather

KenBurnsView
實(shí)現(xiàn)Ken Burns effect效果,達(dá)到身臨其境效果的ImageView
項(xiàng)目地址:https://github.com/flavioarfaria/KenBurnsView

CustomShapeImageView
各種形狀的ImageView, 相比上面的圓形ImageView,多了更多形狀
項(xiàng)目地址:https://github.com/MostafaGazar/CustomShapeImageView
效果圖:Renderings

七、ProgressBar
SmoothProgressBar
水平進(jìn)度條
項(xiàng)目地址:https://github.com/castorflex/SmoothProgressBar
Demo地址:https://play.google.com/store/apps/details?id=fr.castorflex.android.smoothprogressbar.sample

ProgressWheel
支持進(jìn)度顯示的圓形ProgressBar
項(xiàng)目地址:https://github.com/Todd-Davies/ProgressWheel
Demo地址:https://github.com/Trinea/TrineaDownload/blob/master/progress-wheel-demo.apk?raw=true

android-square-progressbar
在圖片周圍顯示進(jìn)度
項(xiàng)目地址:https://github.com/mrwonderman/android-square-progressbar
Demo地址:https://play.google.com/store/apps/details?id=net.yscs.android.square_progressbar_example
APP示例:square
效果圖:Renderings

HoloCircularProgressBar
Android4.1 時(shí)鐘App樣式
項(xiàng)目地址:https://github.com/passsy/android-HoloCircularProgressBar
APP示例:Android4.1時(shí)鐘App
效果圖:Renderings

ProgressButton
通過(guò)圖釘?shù)牟煌瑺顟B(tài)顯示進(jìn)度
項(xiàng)目地址:https://github.com/f2prateek/progressbutton
文檔介紹:http://f2prateek.com/progressbutton/
效果圖:Renderings

GoogleProgressBar
類似google 多個(gè)圓形卡片翻轉(zhuǎn)的progressBar
項(xiàng)目地址:https://github.com/jpardogo/GoogleProgressBar
效果圖:Renderings

TH-ProgressButton
帶圓形進(jìn)度顯示的按鈕
項(xiàng)目地址;https://github.com/torryharris/TH-ProgressButton
效果圖:RenderingsRenderingsRenderingsRenderings

NumberProgressBar
帶數(shù)字進(jìn)度的進(jìn)度條
項(xiàng)目地址:https://github.com/daimajia/NumberProgressBar
效果圖:Renderings

CircularProgressDrawable
帶圓形進(jìn)度顯示的進(jìn)度條
項(xiàng)目地址:https://github.com/Sefford/CircularProgressDrawable
效果圖:Renderings

circular-progress-button
帶進(jìn)度顯示的Button
項(xiàng)目地址:https://github.com/dmytrodanylyk/circular-progress-button
效果圖:Renderings

八、TextView
包括TextView及所有繼承自TextView控件,如EditText、Button、RadioButton

android-flowtextview
文字自動(dòng)環(huán)繞其他View的Layout
項(xiàng)目地址:https://code.google.com/p/android-flowtextview/
效果圖:http://i949.photobucket.com/albums/ad332/vostroman1500/1.png

Android Form EditText
驗(yàn)證輸入合法性的編輯框,支持輸入、英文、ip、url等多種正則驗(yàn)證
項(xiàng)目地址:https://github.com/vekexasia/android-edittext-validator
Demo地址:https://play.google.com/store/apps/details?id=com.andreabaccega.edittextformexample

Emojicon
支持emojis的TextView和EditText
項(xiàng)目地址:https://github.com/rockerhieu/emojicon
文檔地址:http://rockerhieu.com/emojicon/

android-circlebutton
Android圓形按鈕,實(shí)際實(shí)現(xiàn)是繼承自ImageView
項(xiàng)目地址:https://github.com/markushi/android-circlebutton
Demo地址:https://github.com/markushi/android-circlebutton/blob/master/example/example.apk

Segmented Radio Buttons for Android
iOS’s segmented controls的實(shí)現(xiàn)
項(xiàng)目地址:https://github.com/vinc3m1/android-segmentedradiobutton
Demo地址:https://github.com/thquinn/DraggableGridView/blob/master/bin/DraggableGridViewSample.apk?raw=true
效果圖:Renderings

Chips EditText Library
支持國(guó)家名字聯(lián)想從而選擇顯示該國(guó)國(guó)旗的EditText,實(shí)際就是通過(guò)SpannableStringBuilder實(shí)現(xiàn)
項(xiàng)目地址:https://github.com/kpbird/chips-edittext-library
Demo地址:https://github.com/kpbird/chips-edittext-library/tree/master/ChipsEditTextDemo/bin

AutoFitTextView
可固定邊界內(nèi)容字體大小自適應(yīng)的TextView
項(xiàng)目地址:https://github.com/grantland/android-autofittextview

Shimmer for Android
文字發(fā)淡光的TextView
項(xiàng)目地址:https://github.com/RomainPiel/Shimmer-android

Titanic
可以顯示水位上升下降(不知道該怎么描述 囧)的TextView
項(xiàng)目地址:https://github.com/RomainPiel/Titanic
效果圖:Renderings

android-iconify
提供帶Icon的TextView,Menu,Button等
項(xiàng)目地址:https://github.com/JoanZapata/android-iconify

Calligraphy
讓我們?cè)赼ndroid開發(fā)中使用自定義字體變得更加簡(jiǎn)單
項(xiàng)目地址 :https://github.com/chrisjenx/Calligraphy
效果圖:Renderings

CreditsRoll
類似星球大戰(zhàn)字幕效果的TextView
項(xiàng)目地址:https://github.com/frakbot/CreditsRoll

android-process-buton
帶加載或提交進(jìn)度的Button
項(xiàng)目地址:https://github.com/dmytrodanylyk/android-process-buton

FButton
扁平化的Button
項(xiàng)目地址:https://github.com/hoang8f/android-flat-button
Demo地址:https://play.google.com/store/apps/details?id=info.hoang8f.fbutton.demo

FloatingActionButton
一個(gè)類似Android版Google+浮動(dòng)功能按鈕的控件,可以響應(yīng)ListView的滾動(dòng)事件。當(dāng)列表向上滾動(dòng)的時(shí)候會(huì)自動(dòng)顯示,向下滾動(dòng)的時(shí)候自動(dòng)隱藏。
項(xiàng)目地址:https://github.com/makovkastar/FloatingActionButton
Demo地址:https://github.com/makovkastar/FloatingActionButton/tree/master/
效果圖:Renderings

Android Saripaar
Android表單驗(yàn)證
項(xiàng)目地址:https://github.com/ragunathjawahar/android-saripaar/

九、ScrollView
Discrollview
支持滾動(dòng)時(shí)Item淡入淡出,平移,縮放效果的ScrollView
項(xiàng)目地址:https://github.com/flavienlaurent/discrollview
Demo地址:https://github.com/flavienlaurent/discrollview/raw/master/sample.apk

PullScrollView
仿照新浪微博Android客戶端個(gè)人中心的ScrollView,下拉背景伸縮回彈效果。
項(xiàng)目地址:https://github.com/MarkMjw/PullScrollView
效果圖:Renderings

ParallaxScrollView
支持視差滾動(dòng)的ScrollView ,背景圖片的滾動(dòng)速度小于ScrollView中子控件的滾動(dòng)速度
項(xiàng)目地址:https://github.com/chrisjenx/ParallaxScrollView
Demo地址:http://cloud.github.com/downloads/chrisjenx/ParallaxScrollView/ParallaxScrollViewDemo-v1.0.5.apk

十、TimeView
包括TimePicker、DatePicker、CalendarView、Clock等時(shí)間相關(guān)控件

android-times-square
Android日歷時(shí)間部件,支持選取單個(gè)日期,多個(gè)日期,及日期區(qū)間段和對(duì)話框形式顯示
項(xiàng)目地址:https://github.com/square/android-times-square
Demo地址:https://github.com/Trinea/TrineaDownload/blob/master/times-square-demo.apk?raw=true

android-calendar-card
日歷
項(xiàng)目地址:https://github.com/kenumir/android-calendar-card
Demo地址:https://play.google.com/store/apps/details?id=com.wt.calendarcardsample
效果圖:Renderings

AndroidWheel
Android Wheel支持城市、多種日期時(shí)間、密碼、圖片
項(xiàng)目地址:https://code.google.com/p/android-wheel/
效果圖:Renderings

GoogleDateTimePickers
時(shí)間選擇部件
項(xiàng)目地址:https://github.com/Mirkoddd/GoogleDateTimePickers
文檔地址:https://play.google.com/store/apps/details?id=com.mirko.sample&hl=it

DateTimePicker
日期選擇部件(Google Agenda的樣式風(fēng)格)
項(xiàng)目地址:https://github.com/flavienlaurent/datetimepicker
Demo地址:https://raw.github.com/biboune/datetimepicker/master/datetimepicker-sample.apk
效果圖:Renderings

android-betterpickers
提供日期、數(shù)字、時(shí)間(數(shù)字方式和鐘表方式)、重復(fù)周期(鬧鐘的周期重復(fù))、HMS(時(shí)、分、秒)的選擇,支持以DialogFragment的彈窗選擇
項(xiàng)目地址:https://github.com/derekbrameyer/android-betterpickers
Demo地址:https://play.google.com/store/apps/details?id=com.doomonafireball.betterpickers.sample 效果圖:Renderings

十一、TipView
包括Toast、角標(biāo)、UndoBar等提示性控件

Crouton
豐富樣式的Toast,允許alert、comfirm、info樣式及點(diǎn)擊消失樣式,允許設(shè)置Toast顯示時(shí)間,允許自定義View。 本文32. SuperToasts為其擴(kuò)展版
項(xiàng)目地址:https://github.com/keyboardsurfer/Crouton
Demo地址:http://play.google.com/store/apps/details?id=de.keyboardsurfer.app.demo.crouton

supertooltips
帶動(dòng)畫效果的Tips顯示
項(xiàng)目地址:https://github.com/nhaarman/supertooltips
Demo地址:https://play.google.com/store/apps/details?id=com.haarman.supertooltips

Android ViewBadger
為其他View添加角標(biāo)等
項(xiàng)目地址:https://github.com/jgilfelt/android-viewbadger
Demo地址:https://github.com/Trinea/TrineaDownload/blob/master/android-viewbadger.apk?raw=true
效果圖:Renderings

SuperToasts
更豐富樣式的toast,支持Button、Progress、Horizontal Progress樣式、支持進(jìn)入動(dòng)畫、支持撤銷及其動(dòng)畫設(shè)置
項(xiàng)目地址:https://github.com/JohnPersano/SuperToasts
Demo地址:https://play.google.com/store/apps/details?id=com.supertoastsdemo
效果圖:SuperButtonToast

UndoBar
屏幕底部顯示取消或是確認(rèn)的PopupWindows
項(xiàng)目地址:https://github.com/soarcn/UndoBar
效果圖:Renderings

UndoBar
屏幕底部顯示取消或是確認(rèn)某操作
項(xiàng)目地址:https://github.com/jenzz/Android-UndoBar
效果圖:Renderings

十二、FlipView
android-flip
類似Flipboard翻轉(zhuǎn)動(dòng)畫的實(shí)現(xiàn)
項(xiàng)目地址:https://github.com/openaphid/android-flip
Demo地址:https://github.com/openaphid/android-flip/blob/master/FlipView/Demo/APK/Aphid-FlipView-Demo.apk?raw=true
APP示例:flipboard

FlipImageView
支持x、y、z及動(dòng)畫選擇的翻轉(zhuǎn)動(dòng)畫的實(shí)現(xiàn)
項(xiàng)目地址:https://github.com/castorflex/FlipImageView
Demo地址:https://play.google.com/store/apps/details?id=fr.castorflex.android.flipimageview

FoldableLayout
Flip翻轉(zhuǎn)效果的ListView,目前還不支持ListView緩存
項(xiàng)目地址:https://github.com/alexvasilkov/FoldableLayout
Demo地址:http://play.google.com/store/apps/details?id=com.alexvasilkov.foldablelayout.sample

十三、ColorPickView
ColorPickerView
顏色選擇器,支持PopupWindows或新的Activity中打開
項(xiàng)目地址:https://code.google.com/p/color-picker-view/
效果圖:Renderings

HoloColorPicker
顏色選擇器
項(xiàng)目地址:https://github.com/LarsWerkman/HoloColorPicker
Demo地址:https://docs.google.com/file/d/0BwclyDTlLrdXRzVnTGJvTlRfU2s/edit

ColorPickerPreference
顏色選擇器
項(xiàng)目地址:https://github.com/attenzione/android-ColorPickerPreference
效果圖:Renderings

ColorPicker
顏色選擇器(Google Agenda中的樣式風(fēng)格)
項(xiàng)目地址:https://github.com/flavienlaurent/colorpicker
Demo地址:https://raw.github.com/biboune/colorpicker/master/colorpicker-sample.apk 效果圖:Renderings

十四、GraphView
achartengine
強(qiáng)大的圖表繪制工具,支持折線圖、面積圖、散點(diǎn)圖、時(shí)間圖、柱狀圖、條圖、餅圖、氣泡圖、圓環(huán)圖、范圍(高至低)條形圖、撥號(hào)圖/表、立方線圖及各種圖的結(jié)合
項(xiàng)目地址:https://code.google.com/p/achartengine/
官方網(wǎng)站:http://www.achartengine.org/
效果圖:Renderings
http://www.achartengine.org/dimages/sales_line_and_area_chart.png
http://www.achartengine.org/dimages/temperature_range_chart.png
http://www.achartengine.org/dimages/combined_chart.png
http://www.achartengine.org/dimages/budget_chart.png
APP示例:Wordpress Android,Google Analytics

GraphView
繪制圖表和曲線圖的View,可用于Android上的曲形圖、柱狀圖、波浪圖展示
項(xiàng)目地址:https://github.com/jjoe64/GraphView
Demo地址:https://play.google.com/store/apps/details?id=com.sothree.umano
Demo項(xiàng)目:https://github.com/jjoe64/GraphView-Demos
APP示例:Wordpress Android,Google Analytics

HoloGraphLibrary
繪制現(xiàn)狀圖、柱狀圖、餅狀圖
項(xiàng)目地址:https://bitbucket.org/danielnadeau/holographlibrary/src
文檔介紹:https://bitbucket.org/danielnadeau/holographlibrary/wiki/Home

十五、UI Style
不同樣式的系統(tǒng)UI風(fēng)格,如IOS、Bootstrap風(fēng)格

UITableView
ios風(fēng)格控件,包括Button、ListView、TableView
項(xiàng)目地址:https://github.com/thiagolocatelli/android-uitableview
Demo地址:https://github.com/Trinea/TrineaDownload/blob/master/ui-tableview-demo.apk?raw=true

ATableView
ios風(fēng)格控件
項(xiàng)目地址:https://github.com/dmacosta/ATableView
Demo地址:https://play.google.com/store/apps/details?id=com.nakardo.atableview.demo

Cards-UI
卡片式View,支持單個(gè)卡片,item為卡片的ListView
項(xiàng)目地址:https://github.com/afollestad/Cards-UI
Demo地址:https://github.com/Trinea/TrineaDownload/blob/master/cards-ui-demo.apk?raw=true

cardslib
卡片式View,支持單個(gè)卡片,item為卡片的ListView和GridView
項(xiàng)目地址:https://github.com/gabrielemariotti/cardslib
Demo地址:https://play.google.com/store/apps/details?id=it.gmariotti.cardslib.demo

Android-Bootstrap
Bootstrap 風(fēng)格的按鈕
項(xiàng)目地址: https://github.com/Bearded-Hen/Android-Bootstrap
效果圖:Renderings

十六、其他
SwipeBackLayout
左右或向上滑動(dòng)返回的Activity
項(xiàng)目地址:https://github.com/Issacw0ng/SwipeBackLayout
Demo地址:https://play.google.com/store/apps/details?id=me.imid.swipebacklayout.demo
APP示例:知乎

android-styled-dialogs
可自定義樣式的dialog,默認(rèn)與Holo主題樣式一致,在Android2.2以上同一樣式
項(xiàng)目地址:https://github.com/inmite/android-styled-dialogs
Demo地址:https://github.com/Trinea/TrineaDownload/blob/master/styled-dialogs-demo.apk?raw=true

Android Sliding Up Panel
可拖動(dòng)的View,能在當(dāng)前Activity上扶起一個(gè)可拖動(dòng)的Panel
項(xiàng)目地址:https://github.com/umano/AndroidSlidingUpPanel
Demo地址:https://play.google.com/store/apps/details?id=com.sothree.umano
APP示例:Google Music精簡(jiǎn)播放欄

AndroidWheel
Android Wheel支持城市、多種日期時(shí)間、密碼、圖片
項(xiàng)目地址:https://code.google.com/p/android-wheel/
效果圖:Renderings

TableFixHeaders
第一列固定的Table
項(xiàng)目地址:https://github.com/InQBarna/TableFixHeaders
Demo地址:http://bit.ly/13buAIq

Inscription
可用于展示應(yīng)用change和new feature信息
項(xiàng)目地址:https://github.com/MartinvanZ/Inscription

ActivityTransition
Activity切換動(dòng)畫,包括漸變、flip、某個(gè)位置進(jìn)入等等
項(xiàng)目地址:https://github.com/ophilbert/ActivityTransition
使用介紹:https://github.com/jfeinstein10/JazzyViewPager/blob/master/JazzyViewPager.apk?raw=true
效果圖:類似桌面左右切換的各種效果,不過(guò)桌面并非用ViewPager實(shí)現(xiàn)而已

GlowPadBackport
將Android4.2的鎖屏界面解鎖擴(kuò)展到Android1.6及1.6+
項(xiàng)目地址:https://github.com/rock3r/GlowPadBackport
Demo地址:https://play.google.com/store/apps/details?id=net.sebastianopoggi.samples.ui.GlowPadSample
效果圖:Renderings

GlowPadView
Android4鎖屏界面解鎖
項(xiàng)目地址:https://github.com/nadavfima/GlowPadView
效果圖:https://raw.github.com/nadavfima/GlowPadView/master/example.png

android-lockpattern
Android的圖案密碼解鎖
項(xiàng)目地址:https://code.google.com/p/android-lockpattern/
Demo地址:https://play.google.com/store/apps/details?id=group.pals.android.lib.ui.lockpattern.demo
使用介紹:https://code.google.com/p/android-lockpattern/wiki/QuickUse
APP示例:Android開機(jī)的圖案密碼解鎖,支付寶的密碼解鎖

RangeBar
類似于SeekBar,不同的是可以選擇一個(gè)范圍內(nèi)的值而不是單個(gè)值
項(xiàng)目地址:https://github.com/edmodo/range-bar
Demo地址:https://github.com/Trinea/TrineaDownload/blob/master/range-bar-demo.apk?raw=true
效果圖: Renderings

ChromeView
利用Chromium實(shí)現(xiàn)的WebView,解決各個(gè)Android版本W(wǎng)ebView不同的問(wèn)題,同時(shí)利用最新Chrome代碼
項(xiàng)目地址:https://github.com/pwnall/chromeview

Android Slider Preference Library
可添加到設(shè)置中的基于對(duì)話框的RankBar小部件
項(xiàng)目地址:https://github.com/jayschwa/AndroidSliderPreference

ShowcaseView library
用于高亮顯示應(yīng)用程序的特定部分,從而突出突出重點(diǎn)
項(xiàng)目地址:https://github.com/amlcurran/ShowcaseView

android-segmented-control
Android上的Segmented Controls,相當(dāng)于RadioButton組
項(xiàng)目地址:https://github.com/hoang8f/android-segmented-control

Swipeable Cards
類似Tinder的卡片效果,可以加載圖片并動(dòng)畫效果展示,向左滑動(dòng)表示喜歡,向右表示不喜歡
項(xiàng)目地址:https://github.com/kikoso/Swipeable-Cards
Demo地址:https://play.google.com/store/apps/details?id=info.hoang8f.fbutton.demo

EdgeEffectOverride
改變ScrollView, ListView, ExpandableListView, GridView, ViewPager等滾動(dòng)控件滾動(dòng)到邊緣的顏色效果
項(xiàng)目地址:https://github.com/AndroidAlliance/EdgeEffectOverride

android-pinned-header-listviews
使ExpandListView的Group滑動(dòng)到頂端時(shí)會(huì)固定不動(dòng)直到另外一個(gè)Group到達(dá)頂端
項(xiàng)目地址:https://github.com/rtyley/android-pinned-header-listviews

第二部分 工具庫(kù)
主要包括那些不錯(cuò)的開發(fā)庫(kù),包括依賴注入框架、圖片緩存、網(wǎng)絡(luò)相關(guān)、數(shù)據(jù)庫(kù)ORM建模、Android公共庫(kù)、Android 高版本向低版本兼容、多媒體相關(guān)及其他。

一、依賴注入DI
通過(guò)依賴注入減少View、服務(wù)、資源簡(jiǎn)化初始化,事件綁定等重復(fù)繁瑣工作

AndroidAnnotations(Code Diet)
android快速開發(fā)框架
項(xiàng)目地址:https://github.com/excilys/androidannotations
文檔介紹:https://github.com/excilys/androidannotations/wiki
官方網(wǎng)站:http://androidannotations.org/
特點(diǎn):(1) 依賴注入:包括view,extras,系統(tǒng)服務(wù),資源等等
(2) 簡(jiǎn)單的線程模型,通過(guò)annotation表示方法運(yùn)行在ui線程還是后臺(tái)線程
(3) 事件綁定:通過(guò)annotation表示view的響應(yīng)事件,不用在寫內(nèi)部類
(4) REST客戶端:定義客戶端接口,自動(dòng)生成REST請(qǐng)求的實(shí)現(xiàn)
(5) 沒(méi)有你想象的復(fù)雜:AndroidAnnotations只是在在編譯時(shí)生成相應(yīng)子類
(6) 不影響應(yīng)用性能:僅50kb,在編譯時(shí)完成,不會(huì)對(duì)運(yùn)行時(shí)有性能影響。
PS:與roboguice的比較:roboguice通過(guò)運(yùn)行時(shí)讀取annotations進(jìn)行反射,所以可能影響應(yīng)用性能,而AndroidAnnotations在編譯時(shí)生成子類,所以對(duì)性能沒(méi)有影響

roboguice
幫你處理了很多代碼異常,利用annotation使得更少的代碼完成項(xiàng)目
項(xiàng)目地址:https://github.com/roboguice/roboguice
文檔介紹:https://github.com/roboguice/roboguice/wiki

butterknife
利用annotation幫你快速完成View的初始化,減少代碼
項(xiàng)目地址:https://github.com/JakeWharton/butterknife
文檔介紹:http://jakewharton.github.io/butterknife/

Dagger
依賴注入,適用于Android和Java
項(xiàng)目地址:https://github.com/square/dagger
文檔介紹:http://square.github.io/dagger/

二、圖片緩存
Android-Universal-Image-Loader
圖片緩存,目前使用最廣泛的圖片緩存,支持主流圖片緩存的絕大多數(shù)特性。
項(xiàng)目地址:https://github.com/nostra13/Android-Universal-Image-Loader
Demo地址:https://github.com/Trinea/TrineaDownload/blob/master/universal-imageloader-demo.apk?raw=true
文檔介紹:http://www.intexsoft.com/blog/item/74-universal-image-loader-part-3.html

picasso
square開源的圖片緩存
項(xiàng)目地址:https://github.com/square/picasso
文檔介紹:http://square.github.io/picasso/
特點(diǎn):(1)可以自動(dòng)檢測(cè)adapter的重用并取消之前的下載
(2)圖片變換
(3)可以加載本地資源
(4)可以設(shè)置占位資源
(5)支持debug模式

ImageCache
圖片緩存,包含內(nèi)存和Sdcard緩存
項(xiàng)目地址:https://github.com/Trinea/AndroidCommon
Demo地址:https://play.google.com/store/apps/details?id=cn.trinea.android.demo
文檔介紹:http://www.trinea.cn/android/android-imagecache/
特點(diǎn):(1)支持預(yù)取新圖片,支持等待隊(duì)列
(2)包含二級(jí)緩存,可自定義文件名保存規(guī)則
(3)可選擇多種緩存算法(FIFO、LIFO、LRU、MRU、LFU、MFU等13種)或自定義緩存算法
(4)可方便的保存及初始化恢復(fù)數(shù)據(jù)
(5)支持不同類型網(wǎng)絡(luò)處理
(6)可根據(jù)系統(tǒng)配置初始化緩存等

三、網(wǎng)絡(luò)相關(guān)
Asynchronous Http Client for Android
Android異步Http請(qǐng)求
項(xiàng)目地址:https://github.com/loopj/android-async-http
文檔介紹:http://loopj.com/android-async-http/
特點(diǎn):(1) 在匿名回調(diào)中處理請(qǐng)求結(jié)果
(2) 在UI線程外進(jìn)行http請(qǐng)求
(3) 文件斷點(diǎn)上傳
(4) 智能重試
(5) 默認(rèn)gzip壓縮
(6) 支持解析成Json格式
(7) 可將Cookies持久化到SharedPreferences

android-query
異步加載,更少代碼完成Android加載
項(xiàng)目地址:https://github.com/androidquery/androidquery 或 https://code.google.com/p/android-query/
文檔介紹:https://code.google.com/p/android-query/#Why_AQuery?
Demo地址:https://play.google.com/store/apps/details?id=com.androidquery
特點(diǎn):https://code.google.com/p/android-query/#Why_AQuery?

Async Http Client
Java異步Http請(qǐng)求
項(xiàng)目地址:https://github.com/AsyncHttpClient/async-http-client
文檔介紹:http://sonatype.github.io/async-http-client/

Ion
支持圖片、json、http post等異步請(qǐng)求
項(xiàng)目地址:https://github.com/koush/ion
文檔介紹:https://github.com/koush/ion#more-examples

HttpCache
Http緩存
項(xiàng)目地址:https://github.com/Trinea/AndroidCommon
Demo地址:https://play.google.com/store/apps/details?id=cn.trinea.android.demo
文檔介紹:http://www.trinea.cn/android/android-http-cache
特點(diǎn)是:(1) 根據(jù)cache-control、expires緩存http請(qǐng)求
(2) 支持同步、異步Http請(qǐng)求
(3) 在匿名回調(diào)中處理請(qǐng)求結(jié)果
(4) 在UI線程外進(jìn)行http請(qǐng)求
(5) 默認(rèn)gzip壓縮

Http Request
項(xiàng)目地址:https://github.com/kevinsawicki/http-request
文檔介紹:https://github.com/kevinsawicki/http-request#examples

okhttp
square開源的http工具類
項(xiàng)目地址:https://github.com/square/okhttp
文檔介紹:http://square.github.io/okhttp/
特點(diǎn):(1) 支持SPDY( http://zh.wikipedia.org/wiki/SPDY )協(xié)議。SPDY協(xié)議是Google開發(fā)的基于傳輸控制協(xié)議的應(yīng)用層協(xié)議,通過(guò)壓縮,多路復(fù)用(一個(gè)TCP鏈接傳送網(wǎng)頁(yè)和圖片等資源)和優(yōu)先級(jí)來(lái)縮短加載時(shí)間。
(2) 如果SPDY不可用,利用連接池減少請(qǐng)求延遲
(3) Gzip壓縮
(4) Response緩存減少不必要的請(qǐng)求

Retrofit
RESTFUL API設(shè)計(jì)
項(xiàng)目地址:https://github.com/square/retrofit
文檔介紹:http://square.github.io/retrofit/

RoboSpice
Android異步網(wǎng)絡(luò)請(qǐng)求工具,支持緩存、REST等等
項(xiàng)目地址:https://github.com/stephanenicolas/robospice
Demo地址:https://github.com/stephanenicolas/RoboDemo/downloads

四、數(shù)據(jù)庫(kù) orm工具包
orm的db工具類,簡(jiǎn)化建表、查詢、更新、插入、事務(wù)、索引的操作

greenDAO
Android Sqlite orm的db工具類
項(xiàng)目地址:https://github.com/greenrobot/greenDAO
文檔介紹:http://greendao-orm.com/documentation/
官方網(wǎng)站:http://greendao-orm.com/
特點(diǎn):(1) 性能佳
(2) 簡(jiǎn)單易用的API
(3) 內(nèi)存小好小
(4) 庫(kù)大小小

ActiveAndroid
Android Sqlite orm的db工具類
項(xiàng)目地址:https://github.com/pardom/ActiveAndroid
文檔介紹:https://github.com/pardom/ActiveAndroid/wiki/_pages

Sprinkles
Android Sqlite orm的db工具類
項(xiàng)目地址:https://github.com/emilsjolander/sprinkles
文檔介紹:http://emilsjolander.github.io/blog/2013/12/18/android-with-sprinkles/
特點(diǎn):比較顯著的特點(diǎn)就是配合https://github.com/square/retrofit 能保存從服務(wù)器獲取的數(shù)據(jù)

ormlite-android
項(xiàng)目地址:https://github.com/j256/ormlite-android
文檔介紹:http://ormlite.com/sqlite_java_android_orm.shtml

Schematic
根據(jù)SQLite生成ContentProvider
項(xiàng)目地址:https://github.com/SimonVT/schematic

五、Android公共庫(kù)
Guava
Google的基于java1.6的類庫(kù)集合的擴(kuò)展項(xiàng)目,包括collections, caching, primitives support, concurrency libraries, common annotations, string processing, I/O等等. 這些高質(zhì)量的API可以使你的JAVa代碼更加優(yōu)雅,更加簡(jiǎn)潔
項(xiàng)目地址:https://code.google.com/p/guava-libraries/
文檔介紹:https://code.google.com/p/guava-libraries/wiki/GuavaExplained

Volley
Google提供的網(wǎng)絡(luò)通信庫(kù),使得網(wǎng)絡(luò)請(qǐng)求更簡(jiǎn)單、更快速
項(xiàng)目地址:https://android.googlesource.com/platform/frameworks/volley
Github地址:https://github.com/mcxiaoke/android-volley
文檔地址:http://commondatastorage.googleapis.com/io-2013/presentations/110%20-%20Volley-%20Easy,%20Fast%20Networking%20for%20Android.pdf

AndroidCommon
Android公共庫(kù)
項(xiàng)目地址:https://github.com/Trinea/AndroidCommon
Demo地址:https://play.google.com/store/apps/details?id=cn.trinea.android.demo
文檔介紹:http://www.trinea.cn/android/android-common-lib/
包括:(1)緩存(圖片緩存、預(yù)取緩存、網(wǎng)絡(luò)緩存)
(2) 公共View(下拉及底部加載更多ListView、底部加載更多ScrollView、滑動(dòng)一頁(yè)Gallery)
(3) Android常用工具類(網(wǎng)絡(luò)、下載、Android資源操作、shell、文件、Json、隨機(jī)數(shù)、Collection等等)

shipfaster
整合了Dagger Otto Retrofit Robolectric Picasso OkHttp,方便快速開發(fā)
項(xiàng)目地址:https://github.com/pyricau/shipfaster

CleanAndroidCode
整合了Dagger Otto AndroidAnnotations,方便快速開發(fā)
項(xiàng)目地址:https://github.com/pyricau/CleanAndroidCode

xUtils
基于Afinal,包含DbUtils、ViewUtils、HttpUtils、BitmapUtils四大模塊,可用于快速開發(fā)
項(xiàng)目地址:https://github.com/wyouflf/xUtils

Afinal
Afinal是一個(gè)android的ioc,orm框架,內(nèi)置了四大模塊功能:FinalAcitivity,FinalBitmap,FinalDb,FinalHttp。通過(guò)finalActivity,我們可以通過(guò)注解的方式進(jìn)行綁定ui和事件。通過(guò)finalBitmap,我們可以方便的加載bitmap圖片,而無(wú)需考慮oom等問(wèn)題。通過(guò)finalDB模塊,我們一行代碼就可以對(duì)android的sqlite數(shù)據(jù)庫(kù)進(jìn)行增刪改查。通過(guò)FinalHttp模塊,我們可以以ajax形式請(qǐng)求http數(shù)據(jù)
項(xiàng)目地址:https://github.com/yangfuhai/afinal
官方網(wǎng)站:http://www.afinal.org

六、Android 高版本向低版本兼容
ActionBarSherlock
為Android所有版本提供統(tǒng)一的ActionBar,解決4.0以下ActionBar的適配問(wèn)題
項(xiàng)目地址:https://github.com/JakeWharton/ActionBarSherlock
Demo地址:https://play.google.com/store/apps/details?id=com.actionbarsherlock.sample.demos
APP示例:太多了。。現(xiàn)在連google都在用

Nine Old Androids
將Android 3.0(Honeycomb)所有動(dòng)畫API(ObjectAnimator ValueAnimator等)兼容到Android1.0
項(xiàng)目地址:https://github.com/JakeWharton/NineOldAndroids
Demo地址:https://play.google.com/store/apps/details?id=com.jakewharton.nineoldandroids.sample
文檔介紹:http://nineoldandroids.com/

HoloEverywhere
將Android 3.0的Holo主題兼容到Android2.1++
項(xiàng)目地址:https://github.com/Prototik/HoloEverywhere
Demo地址:https://raw.github.com/Prototik/HoloEverywhere/repo/org/holoeverywhere/demo/2.1.0/demo-2.1.0.apk
文檔介紹:http://android-developers.blogspot.com/2012/01/holo-everywhere.html

SherlockNavigationDrawer
將Android NavigationDrawer和ActionbarSherlock結(jié)合,解決4.0以下NavigationDrawer的適配問(wèn)題
項(xiàng)目地址:https://github.com/tobykurien/SherlockNavigationDrawer
文檔地址:http://developer.android.com/training/implementing-navigation/nav-drawer.html

Notifications4EveryWhere
將Android 4.1的Notification兼容到Android2.2++
項(xiàng)目地址:https://github.com/youxiachai/Notifications4EveryWhere

Android Switch Widget Backport
將Android Switch和SwitchPreference的兼容到Android2.1++
項(xiàng)目地址:https://github.com/BoD/android-switch-backport
Demo地址:https://play.google.com/store/apps/details?id=org.jraf.android.backport.switchwidget.sample
文檔介紹:https://github.com/BoD/android-switch-backport#using-the-switch

android-datepicker
將Android 4.0的datepicker兼容到Android2.2++
項(xiàng)目地址:https://github.com/SimonVT/android-datepicker

GlowPadBackport
Android 4.2的GlowPadView向后適配到API4以上
項(xiàng)目地址:https://github.com/frakbot/GlowPadBackport

七、多媒體相關(guān)
cocos2d-x
跨平臺(tái)的2d游戲框架,支持Android、IOS、Linux、Windows等眾多平臺(tái)
項(xiàng)目地址:https://github.com/cocos2d/cocos2d-x
文檔介紹:http://www.cocos2d-x.org/wiki
官方網(wǎng)站:http://www.cocos2d-x.org/

Vitamio
是一款A(yù)ndroid與iOS平臺(tái)上的全能多媒體開發(fā)框架
項(xiàng)目地址:https://github.com/yixia/VitamioBundle
網(wǎng)站介紹:http://www.vitamio.org/docs/
特點(diǎn):(1) 全面支持硬件解碼與GPU渲染
(2) 能夠流暢播放720P甚至1080P高清MKV,FLV,MP4,MOV,TS,RMVB等常見格式的視頻
(3) 在Android與iOS上跨平臺(tái)支持 MMS, RTSP, RTMP, HLS(m3u8)等常見的多種視頻流媒體協(xié)議,包括點(diǎn)播與直播。

PhotoProcessing
利用ndk處理圖片庫(kù),支持Instafix、Ansel、Testino、XPro、Retro、BW、Sepia、Cyano、Georgia、Sahara、HDR、Rotate(旋轉(zhuǎn))、Flip(翻轉(zhuǎn))等各種特效
項(xiàng)目地址:https://github.com/lightbox/PhotoProcessing
Demo地址:https://github.com/Trinea/TrineaDownload/blob/master/photo-processing.apk?raw=true

Android StackBlur
圖片模糊效果工具類
項(xiàng)目地址:https://github.com/kikoso/android-stackblur
Demo地址:https://github.com/kikoso/android-stackblur/blob/master/StackBlurDemo/bin/StackBlurDemo.apk?raw=true
文檔介紹:https://github.com/kikoso/android-stackblur#usage

Bitmap Smart Clipping using OpenCV
圖片智能裁剪保留重要部分顯示
項(xiàng)目地址:https://github.com/beartung/tclip-android
利用淘寶的 http://code.taobao.org/p/tclip/ 庫(kù)完成
一淘玩客正在使用的圖片裁剪,自動(dòng)識(shí)別圖片中的重要區(qū)域,并且在圖片裁剪時(shí)保留重要區(qū)域
特點(diǎn):(1). 能進(jìn)行人臉識(shí)別。圖片中有人臉,將自動(dòng)視為人臉區(qū)域?yàn)橹匾獏^(qū)域,將不會(huì)被裁剪掉
(2).自動(dòng)其它重要區(qū)域。如果圖片中未識(shí)別出人臉,則會(huì)根據(jù)特征分布計(jì)算出重區(qū)域

Cropper
圖片局部剪切工具,可觸摸控制選擇區(qū)域或旋轉(zhuǎn)
項(xiàng)目地址:https://github.com/edmodo/cropper
使用介紹:https://github.com/edmodo/cropper/wiki
效果圖:Renderings

android-crop
圖片裁剪Activity
項(xiàng)目地址:https://github.com/jdamcd/android-crop
效果圖:Renderings

TileView
可分塊顯示大圖,支持2D拖動(dòng)、雙擊、雙指放大、雙指捏合
項(xiàng)目地址:https://github.com/moagrius/TileView
Demo地址:http://moagrius.github.io/TileView/TileViewDemo.apk

BlurEffectForAndroidDesign
圖片模糊效果
項(xiàng)目地址:https://github.com/PomepuyN/BlurEffectForAndroidDesign

android-eye
PC端網(wǎng)頁(yè)查看同一局域網(wǎng)內(nèi)的手機(jī)攝像頭內(nèi)容,可以用來(lái)監(jiān)控哦
項(xiàng)目地址:https://github.com/Teaonly/android-eye
Demo地址:https://play.google.com/store/apps/details?id=teaonly.droideye

libpng for Android
PNG圖片的jni庫(kù),支持幾乎png的所有特性
項(xiàng)目地址:https://github.com/julienr/libpng-android
文檔地址:http://www.libpng.org/pub/png/libpng.html

android-gpuimage
基于GPU的圖片濾鏡
項(xiàng)目地址:https://github.com/CyberAgent/android-gpuimage

AndroidFaceCropper
圖片臉部自動(dòng)識(shí)別,將識(shí)別后的局部圖片返回
項(xiàng)目地址:https://github.com/lafosca/AndroidFaceCropper

Android Video Crop
利用TextureView播放和剪切視頻,類似ImageView.setScaleType
項(xiàng)目地址:https://github.com/dmytrodanylyk/android-video-crop
Demo地址:https://github.com/lafosca/AndroidFaceCropper/releases/download/1.0/FaceCropper-sample-debug-unaligned.apk

svg-android
Android Svg矢量圖形支持
項(xiàng)目地址:https://github.com/japgolly/svg-android https://github.com/japgolly/svg-android

Android Visualizer
從Android MediaPlayer獲得音頻,然后像iTunes及WinAmp一樣展示音軌
項(xiàng)目地址:https://github.com/felixpalmer/android-visualizer

ExoPlayer
包括儀表板和SmoothStreaming自適應(yīng)回放,緩存持久化和自定義渲染器,方便自定義和擴(kuò)展,并且可以通過(guò)應(yīng)用商店更新
項(xiàng)目地址:https://github.com/google/ExoPlayer

八、事件總線(訂閱者模式)
通過(guò)發(fā)布/訂閱事件解耦事件發(fā)送和接受,從而簡(jiǎn)化應(yīng)用程序組件(Activities, Fragments及后臺(tái)線程)之間的通信

EventBus
greenrobot的開源項(xiàng)目
項(xiàng)目地址:https://github.com/greenrobot/EventBus
文檔介紹:https://github.com/greenrobot/EventBus#general-usage-and-api
特點(diǎn):(1) 支持在不同類型的線程中處理訂閱,包括發(fā)布所在線程,UI線程、單一后臺(tái)線程、異步線程
(2) 支持事件優(yōu)先級(jí)定義,支持優(yōu)先級(jí)高的訂閱者取消事件繼續(xù)傳遞,支持粘性事件,是不是跟系統(tǒng)的有序廣播、粘性廣播很像啊
(3) 不是基于annotations
(4) 性能更優(yōu)
(5) 體積小
(6) 支持單例創(chuàng)建或創(chuàng)建多個(gè)對(duì)象
(7) 支持根據(jù)事件類型訂閱

Otto
Square的開源項(xiàng)目,基于Guava的Android優(yōu)化
項(xiàng)目地址:https://github.com/square/otto
文檔介紹:http://square.github.io/otto/
EventBus與Otto的功能及性能對(duì)比文檔
EventBus與Otto性能對(duì)比Demo Apk

九、傳感器
Great Android Sensing Toolkit
Android感應(yīng)器工具包,包含示例及使用過(guò)程中可能需要的算法
項(xiàng)目地址:https://github.com/gast-lib/gast-lib
Demo地址:https://play.google.com/store/apps/details?id=root.gast.playground
文檔介紹:https://github.com/gast-lib/gast-lib#documentation

SensorManager
Android傳感器管理
項(xiàng)目地址:https://github.com/nlathia/SensorManager
文檔介紹:https://docs.google.com/document/d/1TqThJULb-4e6TGb1gdkAaPCfyuXStjJpbnt7a0OZ9OE/edit

GPSLogger
記錄GPS信息
項(xiàng)目地址:https://github.com/mendhak/gpslogger
Demo地址:https://play.google.com/store/apps/details?id=com.mendhak.gpslogger
文檔介紹:http://code.mendhak.com/gpslogger/

Pedometer
計(jì)步器,使用硬件計(jì)步感應(yīng)器
項(xiàng)目地址:https://github.com/j4velin/Pedometer

leapcast
ChromeCast模擬器的App
項(xiàng)目地址:https://github.com/dz0ny/leapcast

Arduino-Communicator
與Arduino通信的App
項(xiàng)目地址:https://github.com/jeppsson/Arduino-Communicator

android-pedometer
Android計(jì)步器
項(xiàng)目地址:https://github.com/bagilevi/android-pedometer
Demo地址:http://pedometer.googlecode.com/files/Pedometer-1.4.apk

OwnTracks for Android
自己的軌跡記錄
項(xiàng)目地址:https://github.com/owntracks/android

Shake Detector library for Android
Android手機(jī)震動(dòng)搖晃檢測(cè)庫(kù),提供供UI線程調(diào)用的回調(diào)接口
項(xiàng)目地址:https://github.com/tbouron/ShakeDetector
Demo地址:https://play.google.com/store/apps/details?id=com.github.tbouron.shakedetector.example

Android heart rate monitor
Android心跳檢測(cè)
項(xiàng)目地址:https://github.com/phishman3579/android-heart-rate-monitor

Bluetooth LE Library for Android
藍(lán)牙源信息,包括寶庫(kù)Mac、更新時(shí)間、RSSI、UUID、信號(hào)源距離、影響范圍等信息
項(xiàng)目地址:https://github.com/alt236/Bluetooth-LE-Library—Android
Demo地址:https://play.google.com/store/apps/details?id=uk.co.alt236.btlescan

farebot
通過(guò)NFC 從公交卡中讀取數(shù)據(jù)的一個(gè)應(yīng)用
項(xiàng)目地址:https://github.com/codebutler/farebot

十、安全
SQLCipher
Sqlite加密工具
項(xiàng)目地址:https://github.com/sqlcipher/sqlcipher
幫助文檔:http://sqlcipher.net/sqlcipher-for-android/

Conceal
快速高效的進(jìn)行文件加密解密
項(xiàng)目地址:https://github.com/facebook/conceal
文檔介紹:https://github.com/facebook/conceal#usage

Android-PasscodeLock
應(yīng)用鎖,每次啟動(dòng)或從任何Activity啟動(dòng)應(yīng)用都需要輸入四位數(shù)字的密碼方可進(jìn)入
項(xiàng)目地址:https://github.com/wordpress-mobile/Android-PasscodeLock
Demo地址:https://play.google.com/store/apps/details?id=com.sothree.umano
APP示例:Wordpress Android,支付寶,挖財(cái)

GlowPadBackport
將Android4.2的鎖屏界面解鎖擴(kuò)展到Android1.6及1.6+
項(xiàng)目地址:https://github.com/rock3r/GlowPadBackport
Demo地址:https://play.google.com/store/apps/details?id=net.sebastianopoggi.samples.ui.GlowPadSample
效果圖:Renderings

GlowPadView
Android 4鎖屏界面解鎖
項(xiàng)目地址:https://github.com/nadavfima/GlowPadView
效果圖:https://raw.github.com/nadavfima/GlowPadView/master/example.png

android-lockpattern
Android的圖案密碼解鎖
項(xiàng)目地址:https://code.google.com/p/android-lockpattern/
Demo地址:https://play.google.com/store/apps/details?id=group.pals.android.lib.ui.lockpattern.demo
使用介紹:https://code.google.com/p/android-lockpattern/wiki/QuickUse
示例APP:Android開機(jī)的圖案密碼解鎖,支付寶的密碼解鎖

十一、插件化
dynamic-load-apk
Android動(dòng)態(tài)加載Apk,熱部署。支持一定程度不安裝升級(jí)
項(xiàng)目地址:https://github.com/singwhatiwanna/dynamic-load-apk
文檔介紹:http://blog.csdn.net/singwhatiwanna/article/details/22597587

xCombine
Android App插件式插件開發(fā),插件必須先安裝
項(xiàng)目地址:https://github.com/wyouflf/xCombine
文檔介紹:http://my.oschina.net/u/1171837/blog/155377

Android Plugin Framework
Android插件式開發(fā),開放的源碼目前不完整
項(xiàng)目地址:https://github.com/umeng/apf

十二、文件
對(duì)不同文檔類型的處理,包括PDF、Word、EPub、Html、Zip等

purePDF
允許從任何運(yùn)行的SWF文件讀取和創(chuàng)建PDF文檔
項(xiàng)目地址:https://github.com/sephiroth74/purePDF

Office 365 SDK for Android Preview
可支持Microsoft SharePoint Lists, Microsoft SharePoint Files, Microsoft Exchange Calendar, Microsoft Exchange Contacts, Microsoft Exchange Mail
項(xiàng)目地址:https://github.com/OfficeDev/Office-365-SDK-for-Android

OpenSpritz-Android
EPub閱讀器
項(xiàng)目地址:https://github.com/OnlyInAmerica/OpenSpritz-Android

jsoup
一個(gè)解析html的java庫(kù),可方便的提取和操作數(shù)據(jù)
項(xiàng)目地址:https://github.com/jhy/jsoup
官方網(wǎng)站:http://jsoup.org/
作用:(1) 從一個(gè)url、文件或string獲得html并解析
(2) 利用dom遍歷或css選擇器查找、提取數(shù)據(jù)
(3) 操作html元素
(4) 根據(jù)白名單去除用于提交的非法數(shù)據(jù)防止xss攻擊
(5) 輸出整齊的html

ZIP
java壓縮和解壓庫(kù)
項(xiàng)目地址:https://github.com/zeroturnaround/zt-zip
文檔介紹:https://github.com/zeroturnaround/zt-zip#examples
作用:(1) 解壓和壓縮,并支持文件夾內(nèi)遞歸操作
(2) 支持包含和排除某些元素
(3) 支持重命名元素
(4) 支持遍歷zip包內(nèi)容
(5) 比較兩個(gè)zip包等功能

十三、其他
Salvage view
帶View緩存的Viewpager PagerAdapter,很方便使用
項(xiàng)目地址:https://github.com/JakeWharton/salvage

Android Priority Job Queue
Android后臺(tái)任務(wù)隊(duì)列
項(xiàng)目地址:https://github.com/path/android-priority-jobqueue
文檔介紹:https://github.com/path/android-priority-jobqueue#getting-started

Cobub Razor
開源的mobile行為分析系統(tǒng),包括web端、android端,支持ios和window phone
項(xiàng)目地址:https://github.com/cobub/razor
Demo地址:http://demo.cobub.com/razor
網(wǎng)站介紹:http://dev.cobub.com/

Countly
Android移動(dòng)端數(shù)據(jù)采集分析系統(tǒng)
項(xiàng)目地址:https://github.com/Countly/countly-sdk-android
官網(wǎng)地址:https://count.ly/

aFileChooser
文件選擇器,可內(nèi)嵌到程序中,而無(wú)需使用系統(tǒng)或三方文件選擇器。
項(xiàng)目地址:https://github.com/iPaulPro/aFileChooser

androidpn
基于xmpp協(xié)議的消息推送解決方案,包括服務(wù)器端和android端。
項(xiàng)目地址:https://github.com/dannytiehui/androidpn

Bolts
Android的異步編程模式
項(xiàng)目地址:https://github.com/BoltsFramework/Bolts-Android/
與AsyncTask比較:(1) 使用的是無(wú)大小限制的線程池
(2) 任務(wù)可組合可級(jí)聯(lián),防止了代碼耦合

CastCompanionLibrary-android
使Android程序中更快的接入Google Cast
項(xiàng)目地址:https://github.com/googlecast/CastCompanionLibrary-android
文檔介紹:https://developers.google.com/cast/

CastVideos-android
從Android設(shè)備分享Video通過(guò)Google Cast
項(xiàng)目地址:https://github.com/googlecast/CastVideos-android
文檔介紹:https://developers.google.com/cast/

Uninstall_Statics
Android應(yīng)用自身被卸載監(jiān)聽及打開瀏覽器等反饋功能實(shí)現(xiàn)
項(xiàng)目地址:https://github.com/sevenler/Uninstall_Statics
文檔介紹:http://www.cnblogs.com/zealotrouge/p/3157126.html
http://www.cnblogs.com/zealotrouge/p/3159772.html

Memento
保證在系統(tǒng)配置改變時(shí),Activity中的某些數(shù)據(jù)可以簡(jiǎn)單安全的保持不變
項(xiàng)目地址:https://github.com/mttkay/memento
文檔介紹:https://github.com/mttkay/memento#usage

FreeFlow
布局引擎,更簡(jiǎn)單的創(chuàng)建自定義布局,并且當(dāng)數(shù)據(jù)和布局改變時(shí)更美觀的過(guò)渡動(dòng)畫
項(xiàng)目地址:https://github.com/Comcast/FreeFlow
Demo地址:https://github.com/Comcast/FreeFlow/releases

Android Gesture Detectors Framework
Android手勢(shì)框架,支持雙指旋轉(zhuǎn)、移動(dòng)、平移、縮放等
項(xiàng)目地址:https://github.com/Almeros/android-gesture-detectors

Mapbox Android SDK
Android Map的替代版
項(xiàng)目地址:https://github.com/mapbox/mapbox-android-sdk

Activity animation
Activity跳轉(zhuǎn)動(dòng)畫,支持各個(gè)方向波浪的效果
項(xiàng)目地址:https://github.com/flavienlaurent/activityanimation
在線演示:https://www.youtube.com/watch?v=-E0sc6w_Jck

KryoNet
通過(guò)NIO提供客戶端和服務(wù)器端TCP/UDP網(wǎng)絡(luò)傳輸?shù)腏ava庫(kù)
項(xiàng)目地址:https://github.com/EsotericSoftware/kryonet

Rebound
一個(gè)模仿彈簧反彈的Java庫(kù),可用于創(chuàng)建動(dòng)畫
項(xiàng)目地址:https://github.com/facebook/rebound

Android Social Networks
社交網(wǎng)絡(luò)接入統(tǒng)一管理器,可方便的從Twitter, LinkedIn, Facebook, Google Plus登陸、獲得個(gè)人信息、發(fā)送消息、發(fā)送專篇、添加或刪除好友
項(xiàng)目地址:https://github.com/antonkrasov/AndroidSocialNetworks
Demo地址:https://play.google.com/store/apps/details?id=com.github.androidsocialnetworks.apidemos

第三部分 優(yōu)秀項(xiàng)目
主要介紹那些Android還不錯(cuò)的完整項(xiàng)目,目前包含的項(xiàng)目主要依據(jù)是項(xiàng)目有意思或項(xiàng)目分層規(guī)范比較好。
Linux
項(xiàng)目地址:https://github.com/torvalds/linux
Android
項(xiàng)目地址:https://android.googlesource.com/ 或 https://github.com/android
以上兩個(gè)項(xiàng)目,不解釋

(1) ZXing
二維碼掃描工具
項(xiàng)目地址:https://github.com/zxing/zxing 或 https://code.google.com/p/zxing/
APK地址:https://play.google.com/store/apps/details?id=com.google.zxing.client.android
PS:現(xiàn)在市面上很多應(yīng)用的二維碼掃描功能都是從這個(gè)修改而來(lái)

(2) photup
編輯機(jī)批量上傳照片到facebook上
項(xiàng)目地址:https://github.com/chrisbanes/photup
APK地址:https://play.google.com/store/apps/details?id=uk.co.senab.photup
PS:代碼分包合理,很棒。不過(guò)這個(gè)項(xiàng)目依賴的開源項(xiàng)目比較多,比較難編譯

(3) github-android
Github的Android客戶端項(xiàng)目
項(xiàng)目地址:https://github.com/github/android
APK地址:https://play.google.com/store/apps/details?id=com.github.mobile

(4) Notes
MIUI便簽
項(xiàng)目地址:https://github.com/MiCode/Notes
APK地址:https://github.com/Trinea/TrineaDownload/blob/master/miui-note-demo.apk?raw=true
PS:項(xiàng)目分包比較合理,相比較miui的文件管理器https://github.com/MiCode/FileExplorer 代碼規(guī)范較好得多

(5) weicuiyuan
四次元-新浪微博客戶端
項(xiàng)目地址:https://github.com/qii/weiciyuan
APK地址:https://play.google.com/store/apps/details?id=org.qii.weiciyuan

(6) gnucash-android
一個(gè)記賬理財(cái)軟件
項(xiàng)目地址:https://github.com/codinguser/gnucash-android
APK地址:http://play.google.com/store/apps/details?id=org.gnucash.android

(7) AntennaPod
支持rss訂閱、音樂(lè)訂閱
項(xiàng)目地址:https://github.com/danieloeh/AntennaPod
APK地址:https://play.google.com/store/apps/details?id=de.danoeh.antennapod

(8) ChaseWhisplyProject
打鬼游戲
項(xiàng)目地址:https://github.com/tvbarthel/ChaseWhisplyProject
APK地址:https://play.google.com/store/apps/details?id=fr.tvbarthel.games.chasewhisply

(9) Tweet Lanes
功能完整的Twitter客戶端
項(xiàng)目地址:https://github.com/chrislacy/TweetLanes
APK地址:https://play.google.com/store/apps/details?id=com.tweetlanes.android

(10) Financius
簡(jiǎn)單易用的記賬程序
項(xiàng)目地址:https://github.com/mvarnagiris/Financius
APK地址:https://play.google.com/store/apps/details?id=com.code44.finance

(11) todo.txt-android
todo.txt的官方Android應(yīng)用
項(xiàng)目地址:https://github.com/ginatrapani/todo.txt-android
APK地址:https://play.google.com/store/apps/details?id=com.todotxt.todotxttouch

(12) simpletask
基于todo.txt官方應(yīng)用的另一個(gè)客戶端
項(xiàng)目地址:https://github.com/mpcjanssen/simpletask-android
APK地址:https://play.google.com/store/apps/details?id=nl.mpcjanssen.todotxtholo

(13) Muzei Live Wallpaper
定時(shí)更換桌面精美壁紙
項(xiàng)目地址:https://github.com/romannurik/muzei
APK地址:https://play.google.com/store/apps/details?id=net.nurik.roman.muzei

第四部分 開發(fā)工具及測(cè)試工具
主要介紹和Android開發(fā)工具和測(cè)試工具相關(guān)的開源項(xiàng)目。

一、開發(fā)效率工具
Json2Java
根據(jù)JSon數(shù)據(jù)自動(dòng)生成對(duì)應(yīng)的Java實(shí)體類,還支持Parcel、Gson Annotations對(duì)應(yīng)代碼自動(dòng)生成。期待后續(xù)的提取父類以及多url構(gòu)建整個(gè)工程的功能
項(xiàng)目地址:https://github.com/jonfhancock/JsonToJava
在線演示:http://jsontojava.appspot.com/

IntelliJ Plugin for Android Parcelable boilerplate code generation
Android studio插件,生成Parcelable代碼
項(xiàng)目地址:https://github.com/mcharmas/android-parcelable-intellij-plugin
效果圖:Holo Colors Idea

Android Holo Colors IntelliJ Plugin
Android studio插件,生成holo樣式9 patch圖片
項(xiàng)目地址:https://github.com/jeromevdl/android-holo-colors-idea-plugin
效果圖:Holo Colors Idea

Android Drawable Factory
用于生成各個(gè)分辨率的圖片
項(xiàng)目地址:https://github.com/tizionario/AndroidDrawableFactory
效果圖:Android Drawable Factory

SelectorChapek for Android
Android Studio插件,可根據(jù)固定文件名格式資源自動(dòng)生成drawable selectors xml文件。
項(xiàng)目地址:https://github.com/inmite/android-selector-chapek

Android Action Bar Style Generator
Android ActionBar樣式生成器,可在線選擇ActionBar樣式自動(dòng)生成所需要的圖片資源及xml文件
項(xiàng)目地址:https://github.com/jgilfelt/android-actionbarstylegenerator
在線演示:http://jgilfelt.github.io/android-actionbarstylegenerator/

ButterKnifeZelezny
用于快速生成ButterKnifeView注入代碼的Android Studio/IDEA插件
項(xiàng)目地址:https://github.com/inmite/android-butterknife-zelezny

RoboCoP
利用Gradle task根據(jù)固定格式的json文件生成ContentProvider
項(xiàng)目地址:https://github.com/mediarain/RoboCoP

appiconsizes
用于生成各個(gè)分辨率的圖片
項(xiàng)目地址:http://www.appiconsizes.com/

Gradle Retrolambda Plugin
Retrolambda是將Java8的Lambdas應(yīng)用于Java7的工具,本項(xiàng)目是Gradle插件,通過(guò)Retrolambda從而使Java或Android項(xiàng)目用Java8的Lambdas編寫,將編譯后的字節(jié)碼轉(zhuǎn)換為Java6和7的字節(jié)碼從而正常運(yùn)行
項(xiàng)目地址:https://github.com/evant/gradle-retrolambda

Dagger IntelliJ Plugin
dagger的intellij插件
項(xiàng)目地址:https://github.com/square/dagger-intellij-plugin

Android Gen Drawable Maven plugin
在編譯時(shí)根據(jù)SVG描述文件生成不同分辨率的jpg、png或點(diǎn)9圖片
項(xiàng)目地址:https://github.com/avianey/androidgendrawable-maven-plugin

Android Asset Studio
各種Android資源自動(dòng)生成器,包括啟動(dòng)圖標(biāo)、ActionBar圖標(biāo)、通知欄圖標(biāo)、點(diǎn)9等
項(xiàng)目地址:https://github.com/romannurik/AndroidAssetStudio
在線演示:http://romannurik.github.io/AndroidAssetStudio/

二、開發(fā)自測(cè)相關(guān)
Quality Tools for Android
Android測(cè)試及自測(cè)工具集合和示例
項(xiàng)目地址:https://github.com/stephanenicolas/Quality-Tools-for-Android

android-test-kit
Google的Android測(cè)試工具
包括GoogleInstrumentationTestRunner(增強(qiáng)版的InstrumentationTestRunner)和Espresso(用于快速寫出可靠測(cè)試用例的API)
項(xiàng)目地址:https://code.google.com/p/android-test-kit/
文檔介紹:https://code.google.com/p/android-test-kit/w/list

robolectric
測(cè)試用例編寫框架
項(xiàng)目地址:https://github.com/robolectric/robolectric
Demo地址:https://github.com/robolectric/robolectricsample
文檔介紹:http://robolectric.org/
特點(diǎn):(1). 不需要模擬器在一般JVM就可以運(yùn)行測(cè)試用例
(2). 能完成在真機(jī)上的大部分測(cè)試包括感應(yīng)器
其他的測(cè)試用例及相關(guān)模塊Mock可見:android-mock, mockito, easy-mock

Android FEST
提供一些列方便的斷言,可用于提高編寫Android自測(cè)代碼效率
項(xiàng)目地址:https://github.com/square/fest-android

BoundBox
可用于測(cè)試類各種訪問(wèn)權(quán)限的屬性、方法。實(shí)際是通過(guò)BoundBox這個(gè)annotation生成一個(gè)屬性和方法都是public權(quán)限的中間類并對(duì)此類進(jìn)行測(cè)試完成的
項(xiàng)目地址:https://github.com/stephanenicolas/boundbox

Hugo
用于打印函數(shù)信息及執(zhí)行時(shí)間的工具,僅在debug模式生效
項(xiàng)目地址:https://github.com/JakeWharton/hugo

scalpel
在應(yīng)用下面添加一層用于界面調(diào)試,待詳細(xì)補(bǔ)充 // TODO
項(xiàng)目地址:https://github.com/JakeWharton/scalpel

Android Screenshot library
Android截圖工具類,用于在持續(xù)集成時(shí)截圖
項(xiàng)目地址:https://github.com/rtyley/android-screenshot-lib

sonar-android-lint-plugin
將android lint的錯(cuò)誤在sonar中展現(xiàn)
項(xiàng)目地址:https://github.com/SonarCommunity/sonar-android

三、測(cè)試工具
Spoon
可用于android不同機(jī)型設(shè)備自動(dòng)化測(cè)試,能將應(yīng)用apk和測(cè)試apk運(yùn)行在不同機(jī)器上并生成相應(yīng)測(cè)試報(bào)告。
項(xiàng)目地址:https://github.com/square/spoon

Tencent APT
APT是騰訊開源的一個(gè)Android平臺(tái)高效性能測(cè)試組件,提供豐富實(shí)用的功能,適用于開發(fā)自測(cè)、定位性能瓶頸;測(cè)試人員完成性能基準(zhǔn)測(cè)試、競(jìng)品對(duì)比測(cè)試
項(xiàng)目地址:https://github.com/stormzhang/APT

Emmagee
網(wǎng)易開源的性能測(cè)試工具,包括CPU、內(nèi)存、網(wǎng)絡(luò)流量、啟動(dòng)時(shí)間、電池狀態(tài)等
項(xiàng)目地址:https://github.com/NetEase/Emmagee

Android py-uiautomator
py-uiautomator是一個(gè)對(duì)Android uiautomator用python進(jìn)行封裝的測(cè)試框架.
項(xiàng)目地址:https://github.com/xiaocong/uiautomator

四、開發(fā)及編譯環(huán)境
Buck
facebook開源的Android編譯工具,效率是ant的兩倍。主要優(yōu)點(diǎn)在于:
(1) 加快編譯速度,通過(guò)并行利用多核cpu和跟蹤不變資源減少增量編譯時(shí)間實(shí)現(xiàn)
(2) 可以在編譯系統(tǒng)中生成編譯規(guī)則而無(wú)須另外的系統(tǒng)生成編譯規(guī)則文件
(3) 編譯同時(shí)可生成單元測(cè)試結(jié)果
(4) 既可用于IDE編譯也可用于持續(xù)集成編譯
(5) facebook持續(xù)優(yōu)化中
項(xiàng)目地址:https://github.com/facebook/buck

Android Maven Plugin
Android Maven插件,可用于對(duì)android三方依賴進(jìn)行管理。在J2EE開發(fā)中,maven是非常成熟的依賴庫(kù)管理工具,可統(tǒng)一管理依賴庫(kù)。
項(xiàng)目地址:https://github.com/jayway/maven-android-plugin

umeng-muti-channel-build-tool
渠道打包工具
項(xiàng)目地址:https://github.com/umeng/umeng-muti-channel-build-tool
另可參見Google的構(gòu)建系統(tǒng)Gradle:http://tools.android.com/tech-docs/new-build-system/user-guide

Genymotion
目前最好用最快的android模擬器
項(xiàng)目地址:http://www.genymotion.com/
Android studio集成控件: http://plugins.jetbrains.com/plugin/7269?pr=idea
Cyril Mottier推薦:http://cyrilmottier.com/2013/06/27/a-productive-android-development-environment/

gradle-mvn-push
方便的將Gradle的Artifacts上傳到Maven倉(cāng)庫(kù)
項(xiàng)目地址:https://github.com/chrisbanes/gradle-mvn-push
文檔介紹:https://github.com/chrisbanes/gradle-mvn-push#usage

Android Emulator Plugin for Jenkins
Android模擬器 jenkins插件,用于Jenkins做持續(xù)集成時(shí)跑模擬器測(cè)試
項(xiàng)目地址:https://github.com/jenkinsci/android-emulator-plugin

Android Maven Plugin
管理應(yīng)用所需要的依賴庫(kù)。包括的構(gòu)建工具有Maven、Gradle、ant、sbt
項(xiàng)目地址:https://github.com/mosabua/maven-android-sdk-deployer

SDK Manager Plugin
下載和管理Android SDK的Gradle插件
項(xiàng)目地址:https://github.com/JakeWharton/sdk-manager-plugin

Gradle Protobuf Plugin
將.proto文件轉(zhuǎn)換成Java文件的gradle插件
項(xiàng)目地址:https://github.com/andrewkroh/gradle-protobuf-plugin

五、其他
ViewServer
允許app運(yùn)行在任何手機(jī)上都可以用HierarchyViewer查看
項(xiàng)目地址:https://github.com/romainguy/ViewServer

GridWichterle for Android
在整個(gè)系統(tǒng)上顯示一個(gè)grid,用來(lái)幫助查看應(yīng)用布局及使得布局更美觀,可設(shè)置grid網(wǎng)格大小和顏色,android推薦48dp和8dp,可見 Android Design Guidelines – Metrics and Grids
項(xiàng)目地址:https://github.com/inmite/android-grid-wichterle
APK地址:https://play.google.com/store/apps/details?id=eu.inmite.android.gridwichterle
PS:比起hierarchyviewer相差甚遠(yuǎn),不過(guò)偶爾可用來(lái)作為布局查看工具。

Catlog
手機(jī)端log查看工具,支持不同顏色顯示、關(guān)鍵字過(guò)濾、級(jí)別過(guò)濾、進(jìn)程id過(guò)濾、錄制功能等
項(xiàng)目地址:https://github.com/nolanlawson/Catlog
在線演示:https://play.google.com/store/apps/details?id=com.nolanlawson.logcat

PID Cat
根據(jù)package查看logcat日志
項(xiàng)目地址:https://github.com/JakeWharton/pidcat

ACRA
應(yīng)用崩潰信息上報(bào)到GoogleDoc工具,網(wǎng)頁(yè)版展現(xiàn)結(jié)果三方開源地址https://github.com/BenoitDuffez/crashreportsviewer
項(xiàng)目地址:https://github.com/ACRA/acra
文檔地址:https://github.com/ACRA/acra/wiki/BasicSetup

Crashlytics
提供豐富的應(yīng)用崩潰信息收集
輕量級(jí),豐富,可自定義應(yīng)用崩潰信息收集器,附有郵件通知
項(xiàng)目地址:http://www.crashlytics.com/
集成插件:Android Studio, Eclipse and IntelliJ

Android Resource Navigator
chrome插件,可以方便的查看github上android源碼工程的styles.xml和themes.xml。主要功能:
(1) 快速打開android styles.xml themes.xml
(2) 方便在資源間跳轉(zhuǎn)。styles.xml themes.xml文件中資源鏈接跳轉(zhuǎn),可以方便跳轉(zhuǎn)到某個(gè)資源
(3) 方便查找某個(gè)style和theme。chrome地址欄輸入arn+tab+搜索內(nèi)容回車即可
(4) 自動(dòng)下載不同分辨率下的drawable
(5) 通過(guò)映射查找那些不是按照固定命名規(guī)則命名的style和theme
項(xiàng)目地址:https://github.com/jgilfelt/android-resource-navigator
在線演示:https://chrome.google.com/webstore/detail/android-resource-navigato/agoomkionjjbejegcejiefodgbckeebo?hl=en&gl=GB

android-resource-remover
根據(jù)lint的提示刪除項(xiàng)目中無(wú)用的資源,減少包的大小
項(xiàng)目地址:https://github.com/KeepSafe/android-resource-remover

Telescope
通過(guò)手勢(shì)截圖以特定主題發(fā)送到特定郵箱地址報(bào)告Bug
項(xiàng)目地址:https://github.com/mattprecious/telescope

Complete Android Fragment & Activity Lifecycle
完整的Android Fragment/Activity生命周期圖
項(xiàng)目地址:https://github.com/xxv/android-lifecycle

第五部分
主要介紹那些樂(lè)于分享并且有一些很不錯(cuò)的開源項(xiàng)目的個(gè)人和組織。Follow大神,深挖大神的項(xiàng)目和following,你會(huì)發(fā)現(xiàn)很多。

一、個(gè)人
JakeWharton
就職于Square,絕對(duì)牛逼的大神,項(xiàng)目主要集中在Android版本兼容,ViewPager及開發(fā)工具上
Github地址:https://github.com/JakeWharton
代表作:ActionBarSherlock,Android-ViewPagerIndicator,Nine Old Androids,SwipeToDismissNOA,hugo,butterknife,Android-DirectionalViewPager, scalpel
pidcat另外對(duì)square及其他開源項(xiàng)目有很多貢獻(xiàn)
主頁(yè):http://jakewharton.com/

Chris Banes
Github地址:https://github.com/chrisbanes
代表作:ActionBar-PullToRefresh,PhotoView,Android-BitmapCache,Android-PullToRefresh
主頁(yè):http://chris.banes.me/

Koushik Dutta
就職于ClockworkMod
Github地址:https://github.com/koush
代表作:Superuser,AndroidAsync,UrlImageViewHelper,ion, 另外對(duì)https://github.com/CyanogenMod 的開源項(xiàng)目有很多貢獻(xiàn)
主頁(yè):http://koush.com/

Simon Vig
Github地址:https://github.com/SimonVT
代表作:android-menudrawer,MessageBar
主頁(yè):http://simonvt.net/

Manuel Peinado
Github地址:https://github.com/ManuelPeinado
代表作:FadingActionBar,GlassActionBar,RefreshActionItem,QuickReturnHeader

Emil Sj?lander
Github地址:https://github.com/emilsjolander
代表作:StickyListHeaders,sprinkles,android-FlipView
主頁(yè):http://emilsjolander.se/

greenrobot
Github地址:https://github.com/greenrobot
代表作:greenDAO,EventBus
主頁(yè):http://greenrobot.de/

Jeff Gilfelt
Github地址:https://github.com/jgilfelt
代表作:android-mapviewballoons,android-viewbadger,android-actionbarstylegenerator,android-sqlite-asset-helper
主頁(yè):http://jeffgilfelt.com

Romain Guy
Android team成員(2013.10已離開Android team,仍在Google)
Github地址:https://github.com/romainguy
代表作:ViewServer
主頁(yè):http://www.curious-creature.org/category/android/
個(gè)人攝影作品:http://www.flickr.com/photos/romainguy

sephiroth74
就職于Aviary.com
Github地址:https://github.com/sephiroth74
代表作:ImageViewZoom,HorizontalVariableListView,AndroidWheel,purePDF
主頁(yè):http://www.sephiroth.it/

Cyril Mottier
Google開發(fā)者專家認(rèn)證,發(fā)布一些Android技巧及文章
Github地址:https://github.com/cyrilmottier
代表作:GreenDroid,Polaris
主頁(yè):http://cyrilmottier.com/

二、組織
Square
有態(tài)度有良心的企業(yè),很多不錯(cuò)的分享
Github地址:https://github.com/square
代表作:okhttp、fest-android,android-times-square、picasso、dagger、spoon等等
主頁(yè):http://square.github.io/

Inmite s.r.o.
Github地址:https://github.com/inmite
代表作:android-styled-dialogs,android-grid-wichterle,android-selector-chapek
主頁(yè):http://www.inmite.eu/




原文

總結(jié)

以上是生活随笔為你收集整理的android一些可用实例2014收藏的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。

如果覺(jué)得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。