整理的Android資源代碼 源碼 整理 Github開源項目下載地址

更多源碼下載,請關注微信公衆號:互聯網技術分享


撿代碼論壇整理提供。


第一部分 個性化控件(View)

主要介紹那些不錯個性化的View,包括ListView、ActionBar、Menu、ViewPager、Gallery、GridView、ImageView、ProgressBar、TextView、ScrollView、TimeView、TipView、FlipView、ColorPickView、GraphView、UI Style等等。

一、ListView

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

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

DropDownListView
下拉刷新及滑動到底部加載更多ListView
項目地址: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
拖動排序的ListView,同時支持ListView滑動item刪除,各個Item高度不一、單選、複選、CursorAdapter做爲適配器、拖動背景變化等
項目地址: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左右滑動事件,支持左右滑動位移,支持定義動畫時間
項目地址:https://github.com/47deg/android-swipelistview
Demo地址:https://play.google.com/store/apps/details?id=com.fortysevendeg.android.swipelistview
APP示例:微信

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

PinnedHeaderExpandableListView
首先它是一個ExpandableListView,但是它的頭部可以固定,其次,在它的上面還有一個頭部可以來回伸縮
項目地址:https://github.com/singwhatiwanna/PinnedHeaderExpandableListView
APP示例:百度手機衛士垃圾清理界面
效果圖:查看圖片

StickyListHeaders
GroupName滑動到頂端時會固定不動直到另外一個GroupName到達頂端的ExpandListView,支持快速滑動,支持Android2.3及以上
項目地址:https://github.com/emilsjolander/StickyListHeaders
APP示例:Android 4.0聯繫人
效果圖:查看圖片

pinned-section-listview
GroupName滑動到頂端時會固定不動直到另外一個GroupName到達頂端的ExpandListView
項目地址:https://github.com/beworker/pinned-section-listview
效果圖:查看圖片

PinnedHeaderListView
GroupName滑動到頂端時會固定不動直到另外一個GroupName到達頂端的ExpandListView
項目地址:https://github.com/JimiSmith/PinnedHeaderListView

QuickReturn
ListView/ScrollView的header或footer,當向下滾動時消失,向上滾動時出現
項目地址:https://github.com/lawloretienne/QuickReturn
Demo地址:https://play.google.com/store/apps/details?id=com.etiennelawlor.quickreturn

QuickReturnHeader
ListView/ScrollView的header或footer,當向下滾動時消失,向上滾動時出現
項目地址: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右側會顯示item首字母快捷索引,點擊可快速滑動到某個item
項目地址:https://github.com/woozzu/IndexableListView
Demo地址:https://github.com/Trinea/TrineaDownload/blob/master/indexable-listview.apk?raw=true
APP示例:微信通訊錄、小米聯繫人

CustomFastScrollView
ListView快速滑動,同時屏幕中間PopupWindows顯示滑動到的item內容或首字母
項目地址:https://github.com/nolanlawson/CustomFastScrollViewDemo
效果圖:查看圖片

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

SlideExpandableListView
用戶點擊listView item滑出固定區域,其他item的區域收縮
項目地址: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以特殊動畫效果進入屏幕,效果包括grow、cards、curl、wave、flip、fly等等
項目地址: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顯示動畫的ListView,動畫包括底部飛入、其他方向斜飛入、下層飛入、漸變消失、滑動刪除等
項目地址:https://github.com/nhaarman/ListViewAnimations
Demo地址:https://play.google.com/store/apps/details?id=com.haarman.listviewanimations
APP示例:Google plus、Google Now卡片式進入、小米系統中應用商店、聯繫人、遊戲中心、音樂、文件管理器的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
項目地址:https://github.com/dinocore1/DevsmartLib-Android
Demo地址:https://github.com/Trinea/TrineaDownload/blob/master/horizontal-listview-demo.apk?raw=true

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

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

LinearListView
用LinearLayout實現的ListView,可解決多個ListView並存等問題。目前自己也有需要,等親自嘗試過後會再具體介紹
項目地址:https://github.com/frankiesardo/LinearListView

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

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

ListBuddies
自動滾動的雙列ListView ,兩個ListView滾動速度不一致,有視差效果
項目地址:https://github.com/jpardogo/ListBuddies
Demo地址:https://play.google.com/store/apps/details?id=com.jpardogo.android.listbuddies
效果展示:查看圖片

SwipeMenuListView
針對ListView item的側滑菜單
項目地址:https://github.com/baoyongzhang/SwipeMenuListView
效果展示:查看圖片
APP示例:手機QQV5.0

PagingListView
分頁加載的ListView。當滑動到ListView底部最後一個元素時,顯示一個進度行,然後加載下一頁數據,並顯示。
項目地址:https://github.com/nicolasjafelle/PagingListView

PullZoomView
支持下拉時HeaderView縮放的ListView、ScrollView
項目地址:https://github.com/Frank-Zhu/PullZoomView
效果展示:查看圖片

PullToZoomInListView
滑動ListView時使其HeaderView跟隨滑動縮放
項目地址:https://github.com/matrixxun/PullToZoomInListView
效果展示:查看圖片

CalendarListview
實現每個月一行日曆效果的ListView
項目地址:https://github.com/traex/CalendarListview
效果展示:查看圖片

sticky-headers-recyclerview
GroupName滑動到頂端時會固定不動直到另外一個GroupName到達頂端的ListView,採用support-v7中的RecyclerView實現
項目地址:https://github.com/timehop/sticky-headers-recyclerview

PullSeparateListView
到達頂部或底部繼續拉動時,實現Item間的相互分離,兩種模式:(1) 全部分離的模式,即屏幕內所有Item都會分離 (2)部分分離模式,以點擊位置爲分界點,部分item分離
項目地址:https://github.com/chiemy/PullSeparateListView
效果展示: 查看圖片

ExpandableLayout
Header 和 Content Item 都可以展開的 ExpandableListview
項目地址:https://github.com/traex/ExpandableLayout




二、ActionBar

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

ActionBar-PullToRefresh
下拉刷新,ActionBar出現加載中提示
項目地址: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向下滾動逐漸顯現的ActionBar
項目地址: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
項目地址:https://github.com/flavienlaurent/NotBoringActionBar
Demo地址:http://flavienlaurent.com/blog/2013/11/20/making-your-action-bar-not-boring/
APP示例:Google音樂

RefreshActionItem
帶進度顯示和刷新按鈕的ActionBar
項目地址: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
項目地址:https://github.com/ManuelPeinado/GlassActionBar
Demo地址:https://play.google.com/store/apps/details?id=com.manuelpeinado.glassactionbardemo
APP示例:google music
查看圖片

三、Menu

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

SlidingMenu
滑出式菜單,通過拖動屏幕邊緣滑出菜單,支持屏幕左右劃出,支持菜單zoom、scale、slide up三種動畫樣式出現。
項目地址: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支持菜單動畫樣式出現,MenuDrawer支持菜單view處於內容的上下層

ArcMenu
支持類似Path的左下角動畫旋轉菜單及橫向劃出菜單、圓心彈出菜單
項目地址:https://github.com/daCapricorn/ArcMenu
APP示例:Path
效果圖:查看圖片
https://dl.dropboxusercontent.com/u/11369687/preview1.png
https://dl.dropboxusercontent.com/u/11369687/raymenu.png

android-satellite-menu
類似Path的左下角動畫旋轉菜單
項目地址: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
圓形菜單,支持二級菜單
項目地址:https://code.google.com/p/radial-menu-widget/
效果圖:http://farm8.staticflickr.com/7377/11621125154_d1773c2dcc_o.jpg

Android Wheel Menu
圓形旋轉選取菜單
項目地址:https://github.com/anupcowkur/Android-Wheel-Menu
效果圖:查看圖片

FoldingNavigationDrawer
滑動並以摺疊方式打開菜單
項目地址:https://github.com/tibi1712/FoldingNavigationDrawer-Android
Demo地址:https://play.google.com/store/apps/details?id=com.ptr.folding.sample
效果圖:查看圖片

AndroidResideMenu
仿 Dribbble 的邊欄菜單
項目地址:https://github.com/SpecialCyCi/AndroidResideMenu
效果圖:查看圖片

CircularFloatingActionMenu
一個可定製的圓形的浮動菜單控件,類似於Path的圓形菜單。這個控件的可定製性更強,可以很容易的定製菜單出現消失時的動畫,起始角度和半徑。
項目地址:https://github.com/oguzbilgener/CircularFloatingActionMenu
Demo地址:https://github.com/oguzbilgener/CircularFloatingActionMenu/tree/master/samples
效果圖:查看圖片

NavigationDrawerSI
Navigation Drawer的一個簡單實現,滑動並以摺疊方式打開菜單
項目地址:https://github.com/mmBs/NavigationDrawerSI
APP示例:https://play.google.com/store/apps/details?id=mmbialas.pl.navigationdrawersi
Demo地址:https://play.google.com/store/apps/details?id=mmbialas.pl.navigationdrawersi
效果圖:查看圖片

DragLayout
使用support.v4包下的ViewDragHelper實現QQ5.0側滑
項目地址:https://github.com/BlueMor/DragLayout
效果圖:查看圖片

LDrawer
Material Design 形式的展開摺疊Icon
項目地址:https://github.com/ikimuhendis/LDrawer
效果圖:查看圖片

Floating Action Button
懸浮的圓形菜單欄,支持組建滾動時自動隱藏及其他設置
項目地址:https://github.com/shamanland/floating-action-button
效果圖:查看圖片



四、ViewPager 、Gallery 

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

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

JellyViewPager
特殊切換動畫的ViewPager
項目地址:https://github.com/chiemy/JellyViewPager
效果圖:查看圖片

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

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

FancyCoverFlow
支持Item切換動畫效果的類似Gallery View
項目地址:https://github.com/davidschreiber/FancyCoverFlow
Demo地址:https://play.google.com/store/apps/details?id=at.technikum.mti.fancycoverflow.samples
效果圖:查看圖片

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

Android Auto Scroll ViewPager
Android自動滾動 輪播循環的ViewPager
項目地址: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,很方便使用
項目地址:https://github.com/JakeWharton/salvage

Android PagerSlidingTabStrip
配合ViewPager使用的Indicator,支持ViewPager Scroll時Indicator聯動
項目地址:https://github.com/astuetz/PagerSlidingTabStrip
Demo地址:https://play.google.com/store/apps/details?id=com.astuetz.viewpager.extensions.sample

ViewPager3D
ViewPager3D效果
項目地址:https://github.com/inovex/ViewPager3D

AnimaTabsview
仿網易雲音樂標籤切換的動畫,帶透明小三角
項目地址:https://github.com/wuyexiong/transparent-over-animtabsview
在線演示:http://v.youku.com/v_show/id_XNzA4MjY5NjA0.html

LoopingViewPager
無限循環的ViewPager
項目地址:https://github.com/imbryk/LoopingViewPager

android_page_curl
翻書卷曲效果
項目地址:https://github.com/harism/android_page_curl
在線演示:https://www.youtube.com/watch?v=iwu7P5PCpsw
APP示例:iReader

查看圖片

五、GridView

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

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

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

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

StickyGridHeaders
GroupName滑動到頂端時會固定不動直到另外一個GroupName到達頂端的GridView
項目地址:https://github.com/TonicArtos/StickyGridHeaders
效果圖:查看圖片

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

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

TwoWayGridView
可橫向滾動的GridView
項目地址:https://github.com/jess-anders/two-way-gridview

PagingGridView
分頁加載的GridView。當滑動到GridView底部最後一個行時,顯示一個進度行,然後加載下一頁數據,並顯示。
項目地址:https://github.com/nicolasjafelle/PagingGridView

AsymmetricGridView
一個支持跨行和跨列可變Item大小的GridView
項目地址:https://github.com/felipecsl/AsymmetricGridView
Demo地址:https://play.google.com/store/apps/details?id=com.felipecsl.asymmetricgridview.app
效果圖:查看圖片

GridView with Header and Footer
和ListView一樣帶頭部和底部的GridView,用法和ListView一樣
項目地址:https://github.com/liaohuqiu/android-GridViewWithHeaderAndFooter
效果圖:查看圖片




六、ImageView

PhotoView
支持雙擊或雙指縮放的ImageView,在ViewPager等Scrolling view中正常使用,相比上面的AndroidTouchGallery,不僅支持ViewPager,同時支持單個ImageView
項目地址: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實現的,編譯生成so庫後直接xml定義view即可,而且本身不依賴於其他開源項目所以相對下面的ImageViewEx簡單的多
項目地址:https://github.com/koral--/android-gif-drawable

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

RoundedImageView
帶圓角的ImageView
項目地址:https://github.com/vinc3m1/RoundedImageView
效果圖:查看圖片

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

CircleImageView
圓形的ImageView
項目地址:https://github.com/hdodenhof/CircleImageView
效果圖:查看圖片

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

KenBurnsView
實現Ken Burns effect效果,達到身臨其境效果的ImageView
項目地址:https://github.com/flavioarfaria/KenBurnsView

CustomShapeImageView
各種形狀的ImageView, 相比上面的圓形ImageView,多了更多形狀
項目地址:https://github.com/MostafaGazar/CustomShapeImageView
效果圖:查看圖片

Shape Image View
可以自定義各種形狀的ImageView, 並且支持邊框
項目地址:https://github.com/siyamed/android-shape-imageview
效果圖:查看圖片查看圖片
查看圖片

七、ProgressBar

SmoothProgressBar
水平進度條
項目地址:https://github.com/castorflex/SmoothProgressBar
Demo地址:https://play.google.com/store/apps/details?id=fr.castorflex.android.smoothprogressbar.sample

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

android-square-progressbar
在圖片周圍顯示進度
項目地址:https://github.com/mrwonderman/android-square-progressbar
Demo地址:https://play.google.com/store/apps/details?id=net.yscs.android.square_progressbar_example
APP示例:square
效果圖:查看圖片

HoloCircularProgressBar
Android4.1 時鐘App樣式
項目地址:https://github.com/passsy/android-HoloCircularProgressBar
APP示例:Android4.1時鐘App
效果圖:查看圖片

ProgressButton
通過圖釘的不同狀態顯示進度
項目地址:https://github.com/f2prateek/progressbutton
文檔介紹:http://f2prateek.com/progressbutton/
效果圖:查看圖片

GoogleProgressBar
類似google 多個圓形卡片翻轉的progressBar
項目地址:https://github.com/jpardogo/GoogleProgressBar
效果圖:查看圖片

TH-ProgressButton
帶圓形進度顯示的按鈕
項目地址;https://github.com/torryharris/TH-ProgressButton
效果圖:查看圖片 查看圖片

NumberProgressBar
帶數字進度的進度條
項目地址:https://github.com/daimajia/NumberProgressBar
效果圖:查看圖片

CircularProgressDrawable
帶圓形進度顯示的進度條
項目地址:https://github.com/Sefford/CircularProgressDrawable
效果圖:查看圖片

circular-progress-button
帶進度顯示的Button
項目地址:https://github.com/dmytrodanylyk/circular-progress-button
效果圖:查看圖片
查看圖片

八、TextView

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

android-flowtextview
文字自動環繞其他View的Layout
項目地址:https://code.google.com/p/android-flowtextview/
效果圖:http://i949.photobucket.com/albums/ad332/vostroman1500/1.png

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

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

android-circlebutton
Android圓形按鈕,實際實現是繼承自ImageView
項目地址: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的實現
項目地址:https://github.com/vinc3m1/android-segmentedradiobutton
Demo地址:https://github.com/thquinn/DraggableGridView/blob/master/bin/DraggableGridViewSample.apk?raw=true
效果圖:查看圖片

Chips EditText Library
支持國家名字聯想從而選擇顯示該國國旗的EditText,實際就是通過SpannableStringBuilder實現
項目地址:https://github.com/kpbird/chips-edittext-library
Demo地址:https://github.com/kpbird/chips-edittext-library/tree/master/ChipsEditTextDemo/bin

AutoFitTextView
可固定邊界內容字體大小自適應的TextView
項目地址:https://github.com/grantland/android-autofittextview

Shimmer for Android
文字發淡光的TextView
項目地址:https://github.com/RomainPiel/Shimmer-android

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

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

Calligraphy
讓我們在android開發中使用自定義字體變得更加簡單
項目地址 :https://github.com/chrisjenx/Calligraphy
效果圖:查看圖片

CreditsRoll
類似星球大戰字幕效果的TextView
項目地址:https://github.com/frakbot/CreditsRoll

android-process-buton
帶加載或提交進度的Button
項目地址:https://github.com/dmytrodanylyk/android-process-buton

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

FloatingActionButton
一個類似Android版Google+浮動功能按鈕的控件,可以響應ListView的滾動事件。當列表向上滾動的時候會自動顯示,向下滾動的時候自動隱藏。
項目地址:https://github.com/makovkastar/FloatingActionButton
Demo地址:https://github.com/makovkastar/FloatingActionButton/tree/master/
效果圖:查看圖片

Android Saripaar
Android表單驗證
項目地址:https://github.com/ragunathjawahar/android-saripaar/

JumpingBeans
文字像 Mexican beans 一樣跳動
項目地址:https://github.com/frakbot/JumpingBeans
Demo地址:http://play.google.com/store/apps/details?id=net.frakbot.jumpingbeans.demo
效果圖:查看圖片

FancyButtons
一個不用圖片就可以幫助我們創建出漂亮按鈕的庫。
項目地址:https://github.com/medyo/fancybuttons
Demo地址:https://github.com/medyo/fancybuttons/tree/master/samples
效果圖:查看圖片 查看圖片

Android-RobotoTextView 一個實現了所有Roboto字體的TextView,包括新出的Roboto Slab字體。
項目地址:https://github.com/johnkil/Android-RobotoTextView
Demo地址:http://play.google.com/store/apps/details?id=com.devspark.robototextview
Demo項目:https://github.com/johnkil/Android-RobotoTextView/tree/master/robototextview-sample
效果圖:查看圖片

Android-WizardPager
一個表單嚮導庫
項目地址:https://github.com/romannurik/android-wizardpager
Demo項目:https://github.com/str4d/android-wizardpager/tree/textfield
效果圖:查看圖片

RippleView
一個實現了 Android L上才引入的點擊按鈕後出現水波紋效果的按鈕
項目地址:https://github.com/siriscac/RippleView
Demo項目:https://github.com/siriscac/RippleView/tree/master/RippleViewExample
效果圖:查看圖片

Android Floating Label Widgets
包含一系列控件,這些控件特點是:有默認值,當值不爲空時默認值浮動到上面變爲提示
項目地址:https://github.com/marvinlabs/android-floatinglabel-widgets
Demo地址:https://play.google.com/store/apps/details?id=com.marvinlabs.widget.floatinglabel.demo
在線演示:http://www.youtube.com/watch?v=hpZD9gJcRg0&feature=youtu.be

九、ScrollView

Discrollview
支持滾動時Item淡入淡出,平移,縮放效果的ScrollView
項目地址:https://github.com/flavienlaurent/discrollview
Demo地址:https://github.com/flavienlaurent/discrollview/raw/master/sample.apk

PullScrollView
仿照新浪微博Android客戶端個人中心的ScrollView,下拉背景伸縮回彈效果。
項目地址:https://github.com/MarkMjw/PullScrollView
效果圖:查看圖片

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

AKParallax-Android
支持視差滾動的ScrollView
項目地址:https://github.com/ideaismobile/AKParallax-Android
Demo地址:https://play.google.com/store/apps/details?id=com.appkraft.parallax_sample
查看圖片

十、TimeView

包括TimePicker、DatePicker、CalendarView、Clock等時間相關控件

android-times-square
Android日曆時間部件,支持選取單個日期,多個日期,及日期區間段和對話框形式顯示
項目地址:https://github.com/square/android-times-square
Demo地址:https://github.com/Trinea/TrineaDownload/blob/master/times-square-demo.apk?raw=true

android-calendar-card
日曆
項目地址:https://github.com/kenumir/android-calendar-card
Demo地址:https://play.google.com/store/apps/details?id=com.wt.calendarcardsample
效果圖:查看圖片

AndroidWheel
Android Wheel支持城市、多種日期時間、密碼、圖片
項目地址:https://code.google.com/p/android-wheel/
效果圖:查看圖片

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

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

android-betterpickers
提供日期、數字、時間(數字方式和鐘錶方式)、重複週期(鬧鐘的週期重複)、HMS(時、分、秒)的選擇,支持以DialogFragment的彈窗選擇
項目地址:https://github.com/derekbrameyer/android-betterpickers
Demo地址:https://play.google.com/store/apps/details?id=com.doomonafireball.betterpickers.sample 效果圖:查看圖片

Android Week View
日期控件,支持周,天視圖,支持自定義樣式
項目地址:https://github.com/alamkanak/Android-Week-View
效果圖:查看圖片
查看圖片

十一、TipView

包括Toast、角標、UndoBar等提示性控件

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

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

Android ViewBadger
爲其他View添加角標等
項目地址:https://github.com/jgilfelt/android-viewbadger
Demo地址:https://github.com/Trinea/TrineaDownload/blob/master/android-viewbadger.apk?raw=true
效果圖:查看圖片

SuperToasts
更豐富樣式的toast,支持Button、Progress、Horizontal Progress樣式、支持進入動畫、支持撤銷及其動畫設置
項目地址:https://github.com/JohnPersano/SuperToasts
Demo地址:https://play.google.com/store/apps/details?id=com.supertoastsdemo
效果圖:查看圖片

UndoBar
屏幕底部顯示取消或是確認的PopupWindows
項目地址:https://github.com/soarcn/UndoBar
效果圖:查看圖片

UndoBar
屏幕底部顯示取消或是確認某操作
項目地址:https://github.com/jenzz/Android-UndoBar
效果圖:查看圖片

Android-ActionItemBadge
可以在ActionBar的MenuItem上顯示一個小角標
項目地址:https://github.com/mikepenz/Android-ActionItemBadge
效果圖:查看圖片查看圖片

十二、FlipView

android-flip
類似Flipboard翻轉動畫的實現
項目地址: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及動畫選擇的翻轉動畫的實現
項目地址:https://github.com/castorflex/FlipImageView
Demo地址:https://play.google.com/store/apps/details?id=fr.castorflex.android.flipimageview

FoldableLayout
Flip翻轉效果的ListView,目前還不支持ListView緩存
項目地址:https://github.com/alexvasilkov/FoldableLayout
Demo地址:http://play.google.com/store/apps/details?id=com.alexvasilkov.foldablelayout.sample
查看圖片

十三、ColorPickView

ColorPickerView
顏色選擇器,支持PopupWindows或新的Activity中打開
項目地址:https://code.google.com/p/color-picker-view/
效果圖:查看圖片

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

ColorPickerPreference
顏色選擇器
項目地址:https://github.com/attenzione/android-ColorPickerPreference
效果圖:查看圖片

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



十四、GraphView

MPAndroidChart
強大的圖表繪製工具,支持折線圖、面積圖、散點圖、時間圖、柱狀圖、條圖、餅圖、氣泡圖、圓環圖、範圍(高至低)條形圖、網狀圖及各種圖的結合;支持圖的拖拽縮放;支持 Android 2.2 以上,支持橫縱軸縮放,多指縮放,展現動畫、高亮、保存到 sdcard、從文件讀取圖表
項目地址:https://github.com/PhilJay/MPAndroidChart
Demo地址:https://play.google.com/store/apps/details?id=com.xxmassdeveloper.mpchartexample
Demo項目:https://github.com/PhilJay/MPAndroidChart/tree/master/MPChartExample
在線演示:https://www.youtube.com/watch?v=ufaK_Hd6BpI
效果圖:查看圖片
查看圖片
查看圖片
查看圖片
查看圖片
查看圖片

achartengine
強大的圖表繪製工具,支持折線圖、面積圖、散點圖、時間圖、柱狀圖、條圖、餅圖、氣泡圖、圓環圖、範圍(高至低)條形圖、撥號圖/表、立方線圖及各種圖的結合
項目地址:https://code.google.com/p/achartengine/
官方網站:http://www.achartengine.org/
效果圖:查看圖片
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上的曲形圖、柱狀圖、波浪圖展示
項目地址:https://github.com/jjoe64/GraphView
Demo項目:https://github.com/jjoe64/GraphView-Demos
APP示例:Wordpress Android,Google Analytics

HoloGraphLibrary
繪製現狀圖、柱狀圖、餅狀圖
項目地址:https://bitbucket.org/danielnadeau/holographlibrary/src
文檔介紹:https://bitbucket.org/danielnadeau/holographlibrary/wiki/Home

XCL-Charts
XCL-Charts基於原生的Canvas來繪製各種圖表,在設計時,儘量在保證開發效率的同時,給使用者提供足夠多的定製化能力。因此使用簡便,同時具有相當靈活的定製能力。目前支持3D/非3D柱形圖(Bar Chart)、3D/非3D餅圖(Pie Chart)、堆積圖(Stacked Bar Chart)、面積圖(Area Chart)、 折線圖(Line Chart)、曲線圖(Spline Chart)、環形圖(Dount Chart)、南丁格爾玫瑰圖(Rose Chart)、儀表盤(Dial Chart)、刻度盤(Gauge Chart)、雷達圖(Radar Chart)、圓形圖(Circle Chart)等圖表。其它特性還包括支持圖表縮放、手勢移動、動畫顯示效果、高密度柱形顯示、圖表分界定製線、多圖表的混合顯示及同數據源不同類型圖表切換等。
項目地址:https://github.com/xcltapestry/XCL-Charts
Demo地址:https://github.com/xcltapestry/XCL-Charts/blob/master/XCL-Charts-demo/bin/XCL-Charts-demo.apk?raw=true

EazeGraph
Android 圖表庫,支持柱狀圖、分層柱狀圖、餅狀圖、線性圖
項目地址:https://github.com/blackfizz/EazeGraph
Demo地址:https://play.google.com/store/apps/details?id=org.eazegraph.app

WilliamChart
繪製圖表的庫,支持LineChartView、BarChartView和StackBarChartView三中圖表類型,並且支持 Android 2.2及以上的系統。
項目地址:https://github.com/diogobernardino/WilliamChart
Demo項目:https://github.com/diogobernardino/WilliamChart/tree/master/sample
Demo地址:https://play.google.com/store/apps/details?id=com.db.williamchartdemo
效果圖:查看圖片查看圖片查看圖片

HelloCharts for Android
支持折線圖、柱狀圖、餅圖、氣泡圖、組合圖;支持預覽、放大縮小,滾動,部分圖表支持動畫;支持 Android 2.2 以上
項目地址:https://github.com/lecho/hellocharts-android
Demo地址:https://play.google.com/store/apps/details?id=lecho.lib.hellocharts.samples
在線演示:https://www.youtube.com/watch?v=xbSBjyjH2SY
查看圖片

十五、UI Style

不同樣式的系統UI風格,如IOS、Bootstrap風格

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

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

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

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

Android-Bootstrap
Bootstrap 風格的按鈕
項目地址:https://github.com/Bearded-Hen/Android-Bootstrap
效果圖:查看圖片

Material Design Android Library
Android L 中 Material Design 風格的組件適配到 Android 2.2+
項目地址:https://github.com/navasmdc/MaterialDesignLibrary

Android FlatUI
Android 扁平化風格的組件,支持一些自定義樣式
項目地址:https://github.com/eluleci/FlatUI
效果圖:查看圖片




十六、其他

SwipeBackLayout
左右或向上滑動返回的Activity
項目地址:https://github.com/Issacw0ng/SwipeBackLayout
Demo地址:https://play.google.com/store/apps/details?id=me.imid.swipebacklayout.demo
APP示例:知乎

android-styled-dialogs
可自定義樣式的dialog,默認與Holo主題樣式一致,在Android2.2以上同一樣式
項目地址: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
可拖動的View,能在當前Activity上扶起一個可拖動的Panel
項目地址:https://github.com/umano/AndroidSlidingUpPanel
Demo地址:https://play.google.com/store/apps/details?id=com.sothree.umano
APP示例:Google Music精簡播放欄

AndroidWheel
Android Wheel支持城市、多種日期時間、密碼、圖片
項目地址:https://code.google.com/p/android-wheel/
效果圖:查看圖片

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

Inscription
可用於展示應用change和new feature信息
項目地址:https://github.com/MartinvanZ/Inscription

ActivityTransition
Activity切換動畫,包括漸變、flip、某個位置進入等等
項目地址:https://github.com/ophilbert/ActivityTransition
使用介紹:https://github.com/jfeinstein10/JazzyViewPager/blob/master/JazzyViewPager.apk?raw=true
效果圖:類似桌面左右切換的各種效果,不過桌面並非用ViewPager實現而已

EasyAndroidAnimations
針對View的各種動畫
項目地址:https://github.com/2359media/EasyAndroidAnimations

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

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

android-lockpattern
Android的圖案密碼解鎖
項目地址: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開機的圖案密碼解鎖,支付寶的密碼解鎖

RangeBar
類似於SeekBar,不同的是可以選擇一個範圍內的值而不是單個值
項目地址:https://github.com/edmodo/range-bar
Demo地址:https://github.com/Trinea/TrineaDownload/blob/master/range-bar-demo.apk?raw=true
效果圖: 查看圖片

ChromeView
利用Chromium實現的WebView,解決各個Android版本WebView不同的問題,同時利用最新Chrome代碼
項目地址:https://github.com/pwnall/chromeview

android-phased-seek-bar
支持預先定義狀態的SeekBar
項目地址:https://github.com/ademar111190/android-phased-seek-bar
效果圖: 查看圖片

Android Slider Preference Library
可添加到設置中的基於對話框的RankBar小部件
項目地址:https://github.com/jayschwa/AndroidSliderPreference

ShowcaseView library
用於高亮顯示應用程序的特定部分,從而突出突出重點
項目地址:https://github.com/amlcurran/ShowcaseView

android-segmented-control
Android上的Segmented Controls,相當於RadioButton組
項目地址:https://github.com/hoang8f/android-segmented-control

Swipeable Cards
類似Tinder的卡片效果,可以加載圖片並動畫效果展示,向左滑動表示喜歡,向右表示不喜歡
項目地址: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等滾動控件滾動到邊緣的顏色效果
項目地址:https://github.com/AndroidAlliance/EdgeEffectOverride

android-pinned-header-listviews
使ExpandListView的Group滑動到頂端時會固定不動直到另外一個Group到達頂端
項目地址:https://github.com/rtyley/android-pinned-header-listviews

AndroidSwipeLayout
滑動Layout,支持單個View,ListView,GridView
項目地址:https://github.com/daimajia/AndroidSwipeLayout
Demo地址:Download Demo
效果圖: 查看圖片

DynamicCardLayout
在Android中實現的類似Windows8的瓷片佈局
項目地址:https://github.com/dodola/DynamicCardLayout
效果圖: 查看圖片

Emoticons-Keyboard
帶表情情符號的自定義鍵盤
項目地址:https://github.com/chiragjain/Emoticons-Keyboard
效果圖: 查看圖片

Android Typeface Helper
可以幫你輕鬆實現自定義字體的庫
項目地址:https://github.com/norbsoft/android-typeface-helper
效果圖: 查看圖片

Android-Anim-Playground
幾個動畫效果,其中第二個基於android-svg的繪製效果非常好
項目地址:https://github.com/Tibolte/Android-Anim-Playground
效果圖: 查看圖片

NiftyDialogEffects
支持自定義飛入動畫樣式的 Dialog
項目地址:https://github.com/sd6352051/NiftyDialogEffects
效果圖: 查看圖片
在線演示:http://tympanus.net/Development/ModalWindowEffects/

PostOffice
創建 Holo 及 Material Design 樣式的 Dialog
項目地址:https://github.com/r0adkll/PostOffice
效果圖: 查看圖片

Swipecards
類似Tinder的卡片效果,可以加載圖片並動畫效果展示,向左滑動表示喜歡,向右表示不喜歡,根據 Kikoso's Swipeable-Cards 改造而來
項目地址:https://github.com/Diolor/Swipecards

SeekArc
圓形的 SeekBar
項目地址:https://github.com/TriggerTrap/SeekArc
效果圖: 查看圖片




第二部分 工具庫

主要包括那些不錯的開發庫,包括依賴注入框架、圖片緩存、網絡相關、數據庫ORM建模、Android公共庫、Android 高版本向低版本兼容、多媒體相關及其他。查看圖片

一、依賴注入DI

通過依賴注入減少View、服務、資源簡化初始化,事件綁定等重複繁瑣工作

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

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

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

Dagger
依賴注入,適用於Android和Java
項目地址:https://github.com/square/dagger
文檔介紹:http://square.github.io/dagger/
查看圖片

二、圖片緩存

Android-Universal-Image-Loader
圖片緩存,目前使用最廣泛的圖片緩存,支持主流圖片緩存的絕大多數特性。
項目地址: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開源的圖片緩存
項目地址:https://github.com/square/picasso
文檔介紹:http://square.github.io/picasso/
特點:(1)可以自動檢測adapter的重用並取消之前的下載
(2)圖片變換
(3)可以加載本地資源
(4)可以設置佔位資源
(5)支持debug模式

ImageCache
圖片緩存,包含內存和Sdcard緩存
項目地址: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/
特點:(1)支持預取新圖片,支持等待隊列
(2)包含二級緩存,可自定義文件名保存規則
(3)可選擇多種緩存算法(FIFO、LIFO、LRU、MRU、LFU、MFU等13種)或自定義緩存算法
(4)可方便的保存及初始化恢復數據
(5)支持不同類型網絡處理
(6)可根據系統配置初始化緩存等

Cube ImageLoader
阿里巴巴一淘使用的圖片加載,綜合了Android-Universal-Image-Loader 和 square 等組件優點,簡單易用,良好的中文文檔支持
項目地址:https://github.com/etao-open-source/cube-sdk
Demo地址:https://github.com/liaohuqiu/cube-sdk/raw/master/cube-sdk-sample.apk
文檔介紹:http://cube-sdk.liaohuqiu.net/
效果圖:查看圖片查看圖片

三、網絡相關

Asynchronous Http Client for Android
Android異步Http請求
項目地址:https://github.com/loopj/android-async-http
文檔介紹:http://loopj.com/android-async-http/
特點:(1) 在匿名回調中處理請求結果
(2) 在UI線程外進行http請求
(3) 文件斷點上傳
(4) 智能重試
(5) 默認gzip壓縮
(6) 支持解析成Json格式
(7) 可將Cookies持久化到SharedPreferences

android-query
異步加載,更少代碼完成Android加載
項目地址: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
特點:https://code.google.com/p/android-query/#Why_AQuery?

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

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

HttpCache
Http緩存
項目地址: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
特點是:(1) 根據cache-control、expires緩存http請求
(2) 支持同步、異步Http請求
(3) 在匿名回調中處理請求結果
(4) 在UI線程外進行http請求
(5) 默認gzip壓縮

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

okhttp
square開源的http工具類
項目地址:https://github.com/square/okhttp
文檔介紹:http://square.github.io/okhttp/
特點:(1) 支持SPDY( http://zh.wikipedia.org/wiki/SPDY )協議。SPDY協議是Google開發的基於傳輸控制協議的應用層協議,通過壓縮,多路複用(一個TCP鏈接傳送網頁和圖片等資源)和優先級來縮短加載時間。
(2) 如果SPDY不可用,利用連接池減少請求延遲
(3) Gzip壓縮
(4) Response緩存減少不必要的請求

Retrofit
RESTFUL API設計
項目地址:https://github.com/square/retrofit
文檔介紹:http://square.github.io/retrofit/

RoboSpice
Android異步網絡請求工具,支持緩存、REST等等
項目地址:https://github.com/stephanenicolas/robospice
Demo地址:https://github.com/stephanenicolas/RoboDemo/downloads
查看圖片

四、數據庫 orm工具包

orm的db工具類,簡化建表、查詢、更新、插入、事務、索引的操作

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

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

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

Realm
移動端的數據庫,適用於 Phone、Tablet、Wearable,支持 ORM,線程安全、支持連表及數據庫加密,比 SQLite 性能更好
項目地址:https://github.com/realm/realm-java
文檔介紹:http://realm.io/docs/java/0.72.0/

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

Schematic
根據SQLite生成ContentProvider
項目地址:https://github.com/SimonVT/schematic



五、Android公共庫

Guava
Google的基於java1.6的類庫集合的擴展項目,包括collections, caching, primitives support, concurrency libraries, common annotations, string processing, I/O等等. 這些高質量的API可以使你的JAVa代碼更加優雅,更加簡潔
項目地址:https://code.google.com/p/guava-libraries/
文檔介紹:https://code.google.com/p/guava-libraries/wiki/GuavaExplained

Volley
Google提供的網絡通信庫,使得網絡請求更簡單、更快速
項目地址: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公共庫
項目地址: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)緩存(圖片緩存、預取緩存、網絡緩存)
(2) 公共View(下拉及底部加載更多ListView、底部加載更多ScrollView、滑動一頁Gallery)
(3) Android常用工具類(網絡、下載、Android資源操作、shell、文件、Json、隨機數、Collection等等)

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

CleanAndroidCode
整合了Dagger Otto AndroidAnnotations,方便快速開發
項目地址:https://github.com/pyricau/CleanAndroidCode

xUtils
基於Afinal,包含DbUtils、ViewUtils、HttpUtils、BitmapUtils四大模塊,可用於快速開發
項目地址:https://github.com/wyouflf/xUtils

Afinal
Afinal是一個android的ioc,orm框架,內置了四大模塊功能:FinalAcitivity,FinalBitmap,FinalDb,FinalHttp。通過finalActivity,我們可以通過註解的方式進行綁定ui和事件。通過finalBitmap,我們可以方便的加載bitmap圖片,而無需考慮oom等問題。通過finalDB模塊,我們一行代碼就可以對android的sqlite數據庫進行增刪改查。通過FinalHttp模塊,我們可以以ajax形式請求http數據
項目地址:https://github.com/yangfuhai/afinal
官方網站:http://www.afinal.org
查看圖片

六、Android 高版本向低版本兼容

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

Nine Old Androids
將Android 3.0(Honeycomb)所有動畫API(ObjectAnimator ValueAnimator等)兼容到Android1.0
項目地址: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++
項目地址: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結合,解決4.0以下NavigationDrawer的適配問題
項目地址:https://github.com/tobykurien/SherlockNavigationDrawer
文檔地址:http://developer.android.com/training/implementing-navigation/nav-drawer.html

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

Android Switch Widget Backport
將Android Switch和SwitchPreference的兼容到Android2.1++
項目地址: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++
項目地址:https://github.com/SimonVT/android-datepicker

GlowPadBackport
Android 4.2的GlowPadView向後適配到API4以上
項目地址:https://github.com/frakbot/GlowPadBackport

Transitions Everywhere
Android 4.4 的 Transitions API 兼容到 Android 2.2 以上
項目地址:https://github.com/andkulikov/transitions-everywhere
查看圖片

七、多媒體相關

cocos2d-x
跨平臺的2d遊戲框架,支持Android、IOS、Linux、Windows等衆多平臺
項目地址:https://github.com/cocos2d/cocos2d-x
文檔介紹:http://www.cocos2d-x.org/wiki
官方網站:http://www.cocos2d-x.org/

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

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

Android StackBlur
圖片模糊效果工具類
項目地址: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
圖片智能裁剪保留重要部分顯示
項目地址:https://github.com/beartung/tclip-android
利用淘寶的 http://code.taobao.org/p/tclip/ 庫完成
一淘玩客正在使用的圖片裁剪,自動識別圖片中的重要區域,並且在圖片裁剪時保留重要區域
特點:(1). 能進行人臉識別。圖片中有人臉,將自動視爲人臉區域爲重要區域,將不會被裁剪掉
(2).自動其它重要區域。如果圖片中未識別出人臉,則會根據特徵分佈計算出重區域

Cropper
圖片局部剪切工具,可觸摸控制選擇區域或旋轉
項目地址:https://github.com/edmodo/cropper
使用介紹:https://github.com/edmodo/cropper/wiki
效果圖:查看圖片

android-crop
圖片裁剪Activity
項目地址:https://github.com/jdamcd/android-crop
效果圖:查看圖片

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

BlurEffectForAndroidDesign
圖片模糊效果
項目地址:https://github.com/PomepuyN/BlurEffectForAndroidDesign

android-eye
PC端網頁查看同一局域網內的手機攝像頭內容,可以用來監控哦
項目地址:https://github.com/Teaonly/android-eye
Demo地址:https://play.google.com/store/apps/details?id=teaonly.droideye

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

android-gpuimage
基於GPU的圖片濾鏡
項目地址:https://github.com/CyberAgent/android-gpuimage

AndroidFaceCropper
圖片臉部自動識別,將識別後的局部圖片返回
項目地址:https://github.com/lafosca/AndroidFaceCropper

Android Video Crop
利用TextureView播放和剪切視頻,類似ImageView.setScaleType
項目地址: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矢量圖形支持
項目地址:https://github.com/japgolly/svg-android https://github.com/japgolly/svg-android

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

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

DanmakuFlameMaster
android上開源彈幕解析繪製引擎項目
項目地址:https://github.com/ctiao/DanmakuFlameMaster
查看圖片

八、事件總線(訂閱者模式)

通過發佈/訂閱事件解耦事件發送和接受,從而簡化應用程序組件(Activities, Fragments及後臺線程)之間的通信

EventBus
greenrobot的開源項目
項目地址:https://github.com/greenrobot/EventBus
文檔介紹:https://github.com/greenrobot/EventBus#general-usage-and-api
特點:(1) 支持在不同類型的線程中處理訂閱,包括髮布所在線程,UI線程、單一後臺線程、異步線程
(2) 支持事件優先級定義,支持優先級高的訂閱者取消事件繼續傳遞,支持粘性事件,是不是跟系統的有序廣播、粘性廣播很像啊
(3) 不是基於annotations
(4) 性能更優
(5) 體積小
(6) 支持單例創建或創建多個對象
(7) 支持根據事件類型訂閱

Otto
Square的開源項目,基於Guava的Android優化
項目地址:https://github.com/square/otto
文檔介紹:http://square.github.io/otto/
EventBus與Otto的功能及性能對比文檔
EventBus與Otto性能對比Demo Apk
查看圖片

九、傳感器

Great Android Sensing Toolkit
Android感應器工具包,包含示例及使用過程中可能需要的算法
項目地址: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傳感器管理
項目地址:https://github.com/nlathia/SensorManager
文檔介紹:https://docs.google.com/document/d/1TqThJULb-4e6TGb1gdkAaPCfyuXStjJpbnt7a0OZ9OE/edit

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

Pedometer
計步器,使用硬件計步感應器
項目地址:https://github.com/j4velin/Pedometer

leapcast
ChromeCast模擬器的App
項目地址:https://github.com/dz0ny/leapcast

Arduino-Communicator
與Arduino通信的App
項目地址:https://github.com/jeppsson/Arduino-Communicator

android-pedometer
Android計步器
項目地址:https://github.com/bagilevi/android-pedometer
Demo地址:http://pedometer.googlecode.com/files/Pedometer-1.4.apk

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

Shake Detector library for Android
Android手機震動搖晃檢測庫,提供供UI線程調用的回調接口
項目地址:https://github.com/tbouron/ShakeDetector
Demo地址:https://play.google.com/store/apps/details?id=com.github.tbouron.shakedetector.example

Android heart rate monitor
Android心跳檢測
項目地址:https://github.com/phishman3579/android-heart-rate-monitor

Bluetooth LE Library for Android
藍牙源信息,包括寶庫Mac、更新時間、RSSI、UUID、信號源距離、影響範圍等信息
項目地址:https://github.com/alt236/Bluetooth-LE-Library---Android
Demo地址:https://play.google.com/store/apps/details?id=uk.co.alt236.btlescan

farebot
通過NFC 從公交卡中讀取數據的一個應用
項目地址:https://github.com/codebutler/farebot



十、安全

SQLCipher
Sqlite加密工具
項目地址:https://github.com/sqlcipher/sqlcipher
幫助文檔:http://sqlcipher.net/sqlcipher-for-android/

Conceal
快速高效的進行文件加密解密
項目地址:https://github.com/facebook/conceal
文檔介紹:https://github.com/facebook/conceal#usage

Android-PasscodeLock
應用鎖,每次啓動或從任何Activity啓動應用都需要輸入四位數字的密碼方可進入
項目地址:https://github.com/wordpress-mobile/Android-PasscodeLock
Demo地址:https://play.google.com/store/apps/details?id=org.wordpress.android
APP示例:Wordpress Android,支付寶,挖財

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

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

android-lockpattern
Android的圖案密碼解鎖
項目地址: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

Android-InsecureBank
關於 Android 不安全性的示例
項目地址:https://github.com/dineshshetty/Android-InsecureBankv2
查看圖片

十一、插件化

更多見:Android 插件化作用、概念以及不錯的資料(包括開源項目)和解決方案

dynamic-load-apk
Android 動態加載Apk,熱部署,利用 ClassLoader 以及 Activity 代理的方式解決
項目地址:https://github.com/singwhatiwanna/dynamic-load-apk
文檔介紹:http://blog.csdn.net/singwhatiwanna/article/details/22597587

Android Dynamic Loader
點評的實現方式,和上面不同的是:他不是用代理 Activity 的方式實現而是用 Fragment 以及 Schema 的方式實現
項目地址:https://github.com/mmin18/AndroidDynamicLoader
Demo地址:https://github.com/mmin18/AndroidDynamicLoader/raw/master/host.apk

xCombine
Android App插件式插件開發,插件必須先安裝,更推薦看上面兩個開源項目
項目地址:https://github.com/wyouflf/xCombine
文檔介紹:http://my.oschina.net/u/1171837/blog/155377

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

multidex
安裝多 dex 的 classloader
項目地址:https://github.com/casidiablo/multidex

ANR-WatchDog
Android ANR 監聽,通過監聽自己的 UI Thread 是否被執行確定是否發生了 ANR,並可以設置相關事件
項目地址:https://github.com/SalomonBrys/ANR-WatchDog
查看圖片

十二、文件

對不同文檔類型的處理,包括PDF、Word、EPub、Html、Zip等

purePDF
允許從任何運行的SWF文件讀取和創建PDF文檔
項目地址:https://github.com/sephiroth74/purePDF

android-pdfview
快速解析pdf的view,默認支持手勢縮放和相關動畫
項目地址:https://github.com/JoanZapata/android-pdfview

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

OpenSpritz-Android
EPub閱讀器
項目地址:https://github.com/OnlyInAmerica/OpenSpritz-Android

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

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

十三、其他

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

Android Priority Job Queue
Android後臺任務隊列
項目地址:https://github.com/path/android-priority-jobqueue
文檔介紹:https://github.com/path/android-priority-jobqueue#getting-started

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

Countly
Android移動端數據採集分析系統
項目地址:https://github.com/Countly/countly-sdk-android
官網地址:https://count.ly/

aFileChooser
文件選擇器,可內嵌到程序中,而無需使用系統或三方文件選擇器。
項目地址:https://github.com/iPaulPro/aFileChooser

androidpn
基於xmpp協議的消息推送解決方案,包括服務器端和android端。
項目地址:https://github.com/dannytiehui/androidpn

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

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

CastVideos-android
從Android設備分享Video通過Google Cast
項目地址:https://github.com/googlecast/CastVideos-android
文檔介紹:https://developers.google.com/cast/

Uninstall_Statics
Android應用自身被卸載監聽及打開瀏覽器等反饋功能實現
項目地址:https://github.com/sevenler/Uninstall_Statics
文檔介紹:http://www.cnblogs.com/zealotrouge/p/3157126.html
http://www.cnblogs.com/zealotrouge/p/3159772.html

Memento
保證在系統配置改變時,Activity中的某些數據可以簡單安全的保持不變
項目地址:https://github.com/mttkay/memento
文檔介紹:https://github.com/mttkay/memento#usage

FreeFlow
佈局引擎,更簡單的創建自定義佈局,並且當數據和佈局改變時更美觀的過渡動畫
項目地址:https://github.com/Comcast/FreeFlow
Demo地址:https://github.com/Comcast/FreeFlow/releases

Android Gesture Detectors Framework
Android手勢框架,支持雙指旋轉、移動、平移、縮放等
項目地址:https://github.com/Almeros/android-gesture-detectors

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

Activity animation
Activity跳轉動畫,支持各個方向波浪的效果
項目地址:https://github.com/flavienlaurent/activityanimation
在線演示:https://www.youtube.com/watch?v=-E0sc6w_Jck

KryoNet
通過NIO提供客戶端和服務器端TCP/UDP網絡傳輸的Java庫
項目地址:https://github.com/EsotericSoftware/kryonet

Rebound
一個模仿彈簧反彈的Java庫,可用於創建動畫
項目地址:https://github.com/facebook/rebound

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

SmartAppUpdates
Android App 增量升級,包含前後端方案、Demo、以及 so 庫,可用於商店或大體積 App 差分升級
項目地址:https://github.com/cundong/SmartAppUpdates

Magnet
創建類似 Facebook 聊天桌面懸浮窗的效果
項目地址:https://github.com/premnirmal/Magnet

Parceler
通過註解及工具類自動完成實體類 Parcelable及值傳遞
項目地址:https://github.com/johncarl81/parceler

AcDisplay
將 Android 的通知都集中到鎖屏顯示
項目地址:https://github.com/AChep/AcDisplay
Demo地址:https://play.google.com/store/apps/details?id=com.achep.acdisplay

QrCodeScan
ZXing和ZBar結合的二維碼掃描項目,提高了掃描效率
項目地址:https://github.com/SkillCollege/QrCodeScan
項目截圖:查看圖片

Android-ScreenShot
實現android系統截屏功能
項目地址:https://github.com/Android-ScreenShot/AndroidScreenShotService
文檔介紹:http://blog.csdn.net/buptgshengod/article/details/39155979

card.io SDK for Android
信用卡掃描 Android SDK
項目地址:https://github.com/card-io/card.io-Android-SDK
Demo項目:https://github.com/card-io/card.io-Android-SDK/tree/master/SampleApp

ASNE
Twitter, Facebook, Google Plus, LinkedIn, Instagram, Vkontakte, Odnoklassniki 的集成庫,包括他們的大多數功能
項目地址:https://github.com/gorbin/ASNE
Demo地址:https://play.google.com/store/apps/details?id=com.gorbin.androidsocialnetworksextended.asne

Android Signature Pad
Android 自定義的簽名 View,可自定義筆顏色和大小
項目地址:https://github.com/gcacace/android-signaturepad
Demo項目:https://github.com/gcacace/android-signaturepad/tree/master/SignaturePad-Example

Teleport
Android Wear 數據同步和消息傳送庫
項目地址:https://github.com/Mariuxtheone/Teleport



第四部分 開發工具及測試工具

主要介紹和Android開發工具和測試工具相關的開源項目。查看圖片

一、開發效率工具

Parceler
通過註解及工具類自動完成實體類 Parcelable及值傳遞 項目地址:https://github.com/johncarl81/parceler

Json2Java
根據JSon數據自動生成對應的Java實體類,還支持Parcel、Gson Annotations對應代碼自動生成。期待後續的提取父類以及多url構建整個工程的功能
項目地址:https://github.com/jonfhancock/JsonToJava
在線演示:http://jsontojava.appspot.com/

IntelliJ Plugin for Android Parcelable boilerplate code generation
Android studio插件,生成Parcelable代碼
項目地址:https://github.com/mcharmas/android-parcelable-intellij-plugin
效果圖:查看圖片

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

Android Drawable Factory
用於生成各個分辨率的圖片
項目地址:https://github.com/tizionario/AndroidDrawableFactory
效果圖:查看圖片

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

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

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

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

appiconsizes
用於生成各個分辨率的圖片
項目地址:http://www.appiconsizes.com/

Gradle Retrolambda Plugin
Retrolambda是將Java8的Lambdas應用於Java7的工具,本項目是Gradle插件,通過Retrolambda從而使Java或Android項目用Java8的Lambdas編寫,將編譯後的字節碼轉換爲Java6和7的字節碼從而正常運行
項目地址:https://github.com/evant/gradle-retrolambda

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

Android Gen Drawable Maven plugin
在編譯時根據SVG描述文件生成不同分辨率的jpg、png或點9圖片
項目地址:https://github.com/avianey/androidgendrawable-maven-plugin

Android Asset Studio
各種Android資源自動生成器,包括啓動圖標、ActionBar圖標、通知欄圖標、點9等
項目地址:https://github.com/romannurik/AndroidAssetStudio
在線演示:http://romannurik.github.io/AndroidAssetStudio/

jsonschema2pojo
根據Json內容生成java對象,支持jackjson和gson
項目地址:https://github.com/joelittlejohn/jsonschema2pojo
在線演示:http://www.jsonschema2pojo.org/

9-Patch-Resizer
自動生成 png 及點 9 圖片的不同分辨率版本
項目地址:https://github.com/redwarp/9-Patch-Resizer
查看圖片

二、開發自測相關

Quality Tools for Android
Android測試及自測工具集合和示例
項目地址:https://github.com/stephanenicolas/Quality-Tools-for-Android

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

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

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

BoundBox
可用於測試類各種訪問權限的屬性、方法。實際是通過BoundBox這個annotation生成一個屬性和方法都是public權限的中間類並對此類進行測試完成的
項目地址:https://github.com/stephanenicolas/boundbox

Hugo
用於打印函數信息及執行時間的工具,僅在debug模式生效
項目地址:https://github.com/JakeWharton/hugo

scalpel
在應用下面添加一層用於界面調試,待詳細補充 // TODO
項目地址:https://github.com/JakeWharton/scalpel

Android Screenshot library
Android截圖工具類,用於在持續集成時截圖
項目地址:https://github.com/rtyley/android-screenshot-lib

sonar-android-lint-plugin
將android lint的錯誤在sonar中展現
項目地址:https://github.com/SonarCommunity/sonar-android
查看圖片

三、測試工具

Spoon
可用於android不同機型設備自動化測試,能將應用apk和測試apk運行在不同機器上並生成相應測試報告。
項目地址:https://github.com/square/spoon

Tencent APT
APT是騰訊開源的一個Android平臺高效性能測試組件,提供豐富實用的功能,適用於開發自測、定位性能瓶頸;測試人員完成性能基準測試、競品對比測試
項目地址:https://github.com/stormzhang/APT

Emmagee
網易開源的性能測試工具,包括CPU、內存、網絡流量、啓動時間、電池狀態等
項目地址:https://github.com/NetEase/Emmagee

Android py-uiautomator
py-uiautomator是一個對Android uiautomator用Python進行封裝的測試框架.
項目地址:https://github.com/xiaocong/uiautomator
查看圖片

四、開發及編譯環境

Buck
facebook開源的Android編譯工具,效率是ant的兩倍。主要優點在於:
(1) 加快編譯速度,通過並行利用多核cpu和跟蹤不變資源減少增量編譯時間實現
(2) 可以在編譯系統中生成編譯規則而無須另外的系統生成編譯規則文件
(3) 編譯同時可生成單元測試結果
(4) 既可用於IDE編譯也可用於持續集成編譯
(5) facebook持續優化中
項目地址:https://github.com/facebook/buck

Android Maven Plugin
Android Maven插件,可用於對android三方依賴進行管理。在J2EE開發中,maven是非常成熟的依賴庫管理工具,可統一管理依賴庫。
項目地址:https://github.com/jayway/maven-android-plugin

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

Genymotion
目前最好用最快的android模擬器
項目地址: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倉庫
項目地址:https://github.com/chrisbanes/gradle-mvn-push
文檔介紹:https://github.com/chrisbanes/gradle-mvn-push#usage

Android Emulator Plugin for Jenkins
Android模擬器 jenkins插件,用於Jenkins做持續集成時跑模擬器測試
項目地址:https://github.com/jenkinsci/android-emulator-plugin

Android Maven Plugin
管理應用所需要的依賴庫。包括的構建工具有Maven、Gradle、ant、sbt
項目地址:https://github.com/mosabua/maven-android-sdk-deployer

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

Gradle Protobuf Plugin
將.proto文件轉換成Java文件的gradle插件
項目地址:https://github.com/andrewkroh/gradle-protobuf-plugin

ChromeADB
Chrome 的 Adb 插件,當登錄後,能看到所有連接的設備並操作,可以看應用、進程、內存及磁盤使用情況等
項目地址:https://github.com/importre/chromeadb
查看圖片

五、其他

ViewServer
允許app運行在任何手機上都可以用HierarchyViewer查看
項目地址:https://github.com/romainguy/ViewServer

GridWichterle for Android
在整個系統上顯示一個grid,用來幫助查看應用佈局及使得佈局更美觀,可設置grid網格大小和顏色,android推薦48dp和8dp,可見 Android Design Guidelines – Metrics and Grids
項目地址:https://github.com/inmite/android-grid-wichterle
APK地址:https://play.google.com/store/apps/details?id=eu.inmite.android.gridwichterle
PS:比起hierarchyviewer相差甚遠,不過偶爾可用來作爲佈局查看工具。

Catlog
手機端log查看工具,支持不同顏色顯示、關鍵字過濾、級別過濾、進程id過濾、錄製功能等
項目地址:https://github.com/nolanlawson/Catlog
在線演示:https://play.google.com/store/apps/details?id=com.nolanlawson.logcat

PID Cat
根據package查看logcat日誌
項目地址:https://github.com/JakeWharton/pidcat

ACRA
應用崩潰信息日誌上報到GoogleDoc工具,網頁版展現結果三方開源地址https://github.com/BenoitDuffez/crashreportsviewer
項目地址:https://github.com/ACRA/acra
文檔地址:https://github.com/ACRA/acra/wiki/BasicSetup

Crashlytics
提供豐富的應用崩潰信息日誌收集
輕量級,豐富,可自定義應用崩潰信息收集器,附有郵件通知
項目地址: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) 方便在資源間跳轉。styles.xml themes.xml文件中資源鏈接跳轉,可以方便跳轉到某個資源
(3) 方便查找某個style和theme。chrome地址欄輸入arn+tab+搜索內容回車即可
(4) 自動下載不同分辨率下的drawable
(5) 通過映射查找那些不是按照固定命名規則命名的style和theme
項目地址:https://github.com/jgilfelt/android-resource-navigator
在線演示:https://chrome.google.com/webstore/detail/android-resource-navigato/agoomkionjjbejegcejiefodgbckeebo?hl=en&gl=GB

android-resource-remover
根據lint的提示刪除項目中無用的資源,減少包的大小
項目地址:https://github.com/KeepSafe/android-resource-remover

Telescope
通過手勢截圖以特定主題發送到特定郵箱地址報告Bug
項目地址:https://github.com/mattprecious/telescope

Complete Android Fragment & Activity Lifecycle
完整的Android Fragment/Activity生命週期圖
項目地址:https://github.com/xxv/android-lifecycle

Bugsnag Notifier for Android
通過Thread.UncaughtExceptionHandler捕獲應用未處理的異常崩潰 Bug 並用 Notification 展示同時上傳到後臺服務器
項目地址:https://github.com/bugsnag/bugsnag-android
文檔地址:https://github.com/bugsnag/bugsnag-android#installation--setup

Material Design Icons
Google Material Design 規範中的 Icon
項目地址:https://github.com/google/material-design-icons

scrollscreenshot
Android 滾動屏幕自動截圖 jar 包,支持縱向、橫向滾動截屏拼接
項目地址:https://github.com/PGSSoft/scrollscreenshot
效果圖:查看圖片


第三部分 優秀項目

主要介紹那些Android還不錯的完整項目,目前包含的項目主要依據是項目有意思或項目分層規範比較好。
Linux
項目地址:https://github.com/torvalds/linux
Android
項目地址:https://android.googlesource.com/ 或 https://github.com/android
以上兩個項目,不解釋

(1) ZXing
二維碼掃描工具
項目地址: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:現在市面上很多應用的二維碼掃描功能都是從這個修改而來

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

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

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

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

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

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

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

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

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

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

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

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




Android常用的物理按鍵及其觸發事件
Activity和View都能接收觸摸和按鍵,如果響應事件只需要在繼承類裏複寫事件函數即可;當一個視圖(如一個按鈕)被觸摸時,該對象上的onTouchEvent()方法

【Tech-Android-Other】Android中的網絡類型獲取與處理
**Android中的網絡類型獲取與處理**開發移動軟件處理網絡連接對於程序員是一個頭疼的問題,至少我這個菜鳥這麼認爲,翻了幾個軟件發現有幾個軟件在

Android回調機制



原文地址:http://bbs.jiandaima.com

更多源碼下載,請關注微信公衆號:



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章