一套完整的Android通用框架

如今作Android開發,已是大好時機,網上有不少成熟的框架,咱們應充分利用好這些,所謂前人種樹後人好乘涼,不少時候壓根不須要了解太多原理,只需站在巨人的丁丁上便可,固然您說您能力強,非要重複造輪子,無可厚非。

MVP模式

MVP

簡介

Android MVP Sample,MVP+Retrofit+RxJava實踐小結java

github地址

https://github.com/WuXiaolong/AndroidMVPSamplegit

相關博客

Android MVP+Retrofit+RxJava實踐小結
Android MVP 實例github

依賴注入

butterknife

簡介

Bind Android views and callbacks to fields and methods 將Android視圖和回調方法綁定到字段和方法上數據庫

github地址

https://github.com/JakeWharton/butterknife編程

相關博客

butterknife官網緩存

網絡請求

Retrofit

簡介

Type-safe HTTP client for Android and Java by Square 類型安全的Http客戶端安全

github地址

https://github.com/square/retrofit微信

相關博客

Android Retrofit 2.0 使用-補充篇
Android Retrofit 2.0使用
Retrofit官網網絡

圖片加載

glide

簡介

An image loading and caching library for Android focused on smooth scrolling 一個圖片加載和緩存的庫框架

github地址

https://github.com/bumptech/glide

picasso

簡介

A powerful image downloading and caching library for Android 一個強大的圖片下載與緩存的庫

github地址

https://github.com/square/picasso

相關博客

Glide 系列預覽
開始!
加載進階
ListAdapter(ListView, GridView)/)
佔位符 和 漸現動畫
圖片重設大小 和 縮放
顯示 Gif 和 Video
緩存基礎
請求優先級
縮略圖
回調:SimpleTarget 和 ViewTarget 用於自定義視圖類
加載圖片到通知欄和應用小部件中
異常:調試和錯誤處理
自定義轉換
用 animate() 自定義動畫
集成網絡棧
用 Module 自定義 Glide
Module 實例:接受自簽名證書的 HTTPS
Module 實例:自定義緩存
Module 實例:用自定義尺寸優化加載的圖片
動態使用 Model Loader
如何旋轉圖像
系列綜述

Picasso
github之Picasso使用

圖片操做

PhotoView

簡介

Implementation of ImageView for Android that supports zooming, by various touch gestures 圖片縮放

github地址

https://github.com/chrisbanes/PhotoView

相關博客

github之PhotoView使用

uCrop

簡介

Image Cropping Library for Android 圖片裁剪

github地址

https://github.com/Yalantis/uCrop

相關博客

uCrop使用及源碼淺析

CircleImageView

簡介

A circular ImageView for Android 圓頭像

github地址

https://github.com/hdodenhof/CircleImageView

數據庫

Realm

簡介

Realm is a mobile database: a replacement for SQLite & ORMs

github地址

https://github.com/realm/realm-java

相關博客

Realm官網

響應式編程

RxJava

簡介

RxJava – Reactive Extensions for the JVM – a library for composing asynchronous and event-based programs using observable sequences for the Java VM

github地址

https://github.com/ReactiveX/RxJava

相關博客

RxJava
RxJava Essentials CN
ReactiveX文檔中文翻譯
給 Android 開發者的 RxJava 詳解

事件總線

RxBus

簡介

基於RxJava寫的事件總線

相關博客

RxBus

下拉刷新

PullLoadMoreRecyclerView

簡介

實現RecyclerView下拉刷新和上拉加載更多以及RecyclerView線性、網格、瀑布流效果演示。適用於只須要簡單地實現下拉刷新和上拉加載效果。

github地址

https://github.com/WuXiaolong/PullLoadMoreRecyclerView

相關博客

PullLoadMoreRecyclerView

最後

知道了解以上開源框架,開發又何憂!我總結的可能還不夠全,若是您以爲實際項目中還有必用到的庫,歡迎留言哈。

微信公衆號

個人微信公衆號:吳小龍同窗。

相關文章
相關標籤/搜索