標籤:
Android開源項目第一篇——個人化控制項(View)篇
包括ListView、ActionBar、Menu、ViewPager、Gallery、GridView、ImageView、ProgressBar、TextView、ScrollView、TimeView、TipView、FlipView、ColorPickView、GraphView、UI Style、其他
Android開源項目第二篇——工具庫篇
包括依賴注入、圖片緩衝、網路相關、資料庫ORM工具包、Android公用庫、高版本向低版本相容庫、多媒體、事件匯流排、感應器、安全、外掛程式化、檔案、其他
Android開源項目第三篇——優秀項目篇
比較有意思的完整的Android項目
Android開源項目第四篇——開發及測試載入器篇
包括開發效率工具、開發自測相關、測試載入器、開發及編譯環境、其他
Android開源項目第五篇——優秀個人和團體篇
樂於分享並且有一些很不錯的開源項目的個人和組織,包括JakeWharton、Chris Banes、Koushik Dutta等大牛
第一部分 個人化控制項(View)
主要介紹那些不錯個人化的View,包括ListView、ActionBar、Menu、ViewPager、Gallery、GridView、ImageView、ProgressBar、TextView、ScrollView、TimeView、TipView、FlipView、ColorPickView、GraphView、UI Style等等。
一、ListView
1,android-pulltorefresh
一個強大的拉動重新整理開源項目,支援各種控制項下拉重新整理,ListView、ViewPager、WebView、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樣本:新浪微博各個頁面
2,android-pulltorefresh-listview
下拉重新整理ListView,這個被很多人使用的項目實際有不少bug,推薦使用上面的android-pulltorefresh
項目地址:
https://github.com/johannilsson/android-pulltorefresh
Demo地址:
https://github.com/Trinea/TrineaDownload/blob/master/pull-to-refresh-listview-demo.apk?raw=true
3,android-Ultra-Pull-to-Refresh
下拉重新整理,第一個項目已經停止維護了,並且使用起來相對複雜,定製性也差。這個是替代和改良方案。這個繼承於ViewGroup可以包含任何View。功能甚至比SwipeRefreshLayout強大。使用起來非常簡單。良好的設計,如果你想定製自己的UI樣式,非常簡單,就像給ListView加一個Header View那麼簡單。支援 API LEVEL >= 8。
項目地址:
https://github.com/liaohuqiu/android-Ultra-Pull-To-Refresh
Demo地址:
https://github.com/liaohuqiu/android-Ultra-Pull-To-Refresh/blob/master/ptr-demo/target/ultra-ptr-demo.apk?raw=true
4,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/
5,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
二、ActionBar
1、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都在用
2、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,知乎等
3、FadingActionBar
ListView向下滾動逐漸顯現的ActionBar
項目地址:
https://github.com/ManuelPeinado/FadingActionBar
Demo地址:
https://play.google.com/store/apps/details?id=com.manuelpeinado.fadingactionbar.demo
APP樣本:google music,知乎
三、Menu
1、MenuDrawer
滑出式菜單,通過拖動螢幕邊緣滑出菜單,支援螢幕上下左右划出,支援當前View處於上下層,支援Windows邊緣、ListView邊緣、ViewPager變化划出菜單等。
項目地址:
https://github.com/SimonVT/android-menudrawer
Demo地址:
http://simonvt.github.io/android-menudrawer/
APP樣本:Gmail、Google Music等大部分google app
2、SlidingMenu
滑出式菜單,通過拖動螢幕邊緣滑出菜單,支援螢幕左右划出,支援菜單zoom、scale、slide up三種動畫樣式出現。與MenuDrawer相比而言,SlidingMenu支援菜單動畫樣式出現,MenuDrawer支援菜單view處於內容的上下層
項目地址:
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
3、ArcMenu
支援類似Path的左下角動畫旋轉菜單及橫向划出菜單、圓心快顯功能表
項目地址:
https://github.com/daCapricorn/ArcMenu
:
APP樣本:Path
四、ViewPager 、Gallery
1、Android-ViewPagerIndicator
配合ViewPager使用的Indicator,支援各種位置和樣式
項目地址:
https://github.com/JakeWharton/Android-ViewPagerIndicator
Demo地址:
https://play.google.com/store/apps/details?id=com.viewpagerindicator.sample
APP樣本:太多了。。
2、JazzyViewPager
支援Fragment切換動畫的ViewPager,動畫包括轉盤、淡入淡出、翻頁、層疊、旋轉、方塊、翻轉、放大縮小等,效果類似案頭左右切換的各種效果,不過案頭並非用ViewPager實現而已
項目地址:
https://github.com/jfeinstein10/JazzyViewPager
Demo地址:
https://github.com/jfeinstein10/JazzyViewPager/blob/master/JazzyViewPager.apk?raw=true
3、JellyViewPager
特殊切換動畫的ViewPager
項目地址:
https://github.com/chiemy/JellyViewPager
:
http://mp.weixin.qq.com/s?__biz=MzA4NDM2MjAwNw==&mid=207364589&idx=1&sn=6955c3c4081d55a16e6a0c357711309c&scene=18&scene=1#rd
Android開源項目分類匯總