Android中不錯的開源庫

jopen 9年前發布 | 22K 次閱讀 Android Android開發 移動開發


1、圖片下載(帶內存和本地緩存管理,功能很強大,定制性強)
https://github.com/nostra13/Android-Universal-Image-Loader

2、支持各種控件的下拉刷新、上拉加載更多
https://github.com/chrisbanes/Android-PullToRefresh

3、功能性強的http
http://loopj.com/android-async-http/
Used in Production By Top Apps and Developers

Instagram
Instagram is the #1 photo app on android, with over 10million users
Pinterest
Popular online pinboard. Organize and share things you love.
Frontline Commando (Glu Games)

1 first person shooting game on Android, by Glu Games.

Heyzap
Social game discovery app with millions of users
Pose
Pose is the #1 fashion app for sharing and discovering new styles
Thousands more apps…
Async HTTP is used in production by thousands of top apps.

4、范圍的seekbar
https://code.google.com/p/range-seek-bar/

5、仿ios滾輪
http://code.google.com/p/android-wheel/downloads/list

6、可以替代webview的chrome內核的chromeview
https://github.com/pwnall/chromeview

7、用于viewpager的tabstrip
https://github.com/astuetz/PagerSlidingTabStrip

8、帶section效果的listview
https://github.com/emilsjolander/StickyListHeaders

9、帶section效果的gridview
https://github.com/TonicArtos/StickyGridHeaders

10、帶特殊動畫效果的viewpager
https://github.com/jfeinstein10/JazzyViewPager

11、holo主題
https://github.com/Prototik/HoloEverywhere

12、可拖拽的listview
https://github.com/bauerca/drag-sort-listview
http://blog.csdn.net/jj120522/article/details/8240407

13、帶手勢操作和雙擊縮放的imageview
https://github.com/chrisbanes/PhotoView

14、滑動開關 高仿ios
https://github.com/IssacWang/SwitchButton

15、仿path左下角的菜單
http://www.androidviews.net/2012/12/arcmenu/
https://github.com/siyamed/android-satellite-menu

16、google-gson
https://code.google.com/p/google-gson/

17、瀑布流
https://github.com/maurycyw/StaggeredGridView

18、rss
https://github.com/ahorn/android-rss

19、各種圖片效果
https://github.com/daizhenjun/ImageFilterForAndroid

20、代理服務器
https://github.com/madeye/proxydroid

21、android系統自帶截屏
https://github.com/julianshen/ScreenCap

22、界面帶滑動返回交互效果
https://github.com/Issacw0ng/SwipeBackLayout

23、gallery在API level 16(Android 4.1)就過期了,也就是谷歌不在維護這個類了。谷歌還推薦了可以用HorizontalScrollView 或者ViewPager 來代替它。Gallery過期的原因是因為它的適配器不能合適的轉換視圖,它每次切換圖片時都要新建視圖造成浪費太多的資源。所以還可以使用第三方開源庫來替代:
EcoGallery項目github地址:https://github.com/falnatsheh/EcoGallery/
EcoGallery是繼承了viewgroup實現的gallery 基本特性跟gallery一樣 解決了gallery不回收視圖資源的性能問題 還有額外的特性 如可以設置未選中項的半透明效果等 但依然存在與gallery同樣的幾個問題就是左右存在邊距空白區域以及默認不會居左對齊(選中項為第一項)等
HorizontalListView:https://github.com/MeetMe/Android-HorizontalListView


24、仿刮獎效果的控件
Android-WScratchView:
https://github.com/winsontan520/Android-WScratchView


一個收集android開源控件和類庫的網站:http://www.androidviews.net/
國內類似的android開源控件和類庫的網站:http://a.code4app.com/

Log4j

官方網站



做軟件開發, 沒有個日志組件是不行的。 Android原生的日志服務太簡陋了, 連輸出的文件都沒有。

android-log4j配置稍微有些麻煩, 需要下載多個jar包, 包括log4j, android-log4j等。 我自己用proguard封了一個包, 用來輸出日志到文件沒有問題, 提供給大家。下載地址

final LogConfigurator lc = new LogConfigurator();
lc.setFileName(PATH_LOGGER_FILE);//日志文件路徑
lc.setFilePattern("%d - [%-6p-%c] - %m%n");//日志輸出格式
lc.setMaxBackupSize(2);//最多的文件備份個數, 超過后log4j將自行刪除
lc.setMaxFileSize(1024 * 1024);//最大的日志大小, 超過后log4j將備份下來, 再新建一個文件。
lc.setRootLevel(Level.DEBUG);
// Set log level of a specific logger
lc.setLevel("org.apache", Level.DEBUG);
lc.configure();
把上述代碼, 放在程序初始化的過程中。

private Logger logger = Logger.getLogger("LoggerName");
logger.debug("Log text");
就可以輸出日志到文件了。



25、magic textview

http://qwerjk.com/magic-text



26、插件化開發框架

友盟的:https://github.com/umeng/apf

http://apkplug.com/



27、文件下載

友盟的:https://github.com/umeng/android_download_manager

https://github.com/yingyixu/android-download-manager

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