一套完整的Android通用框架

thangsen 8年前發布 | 17K 次閱讀 Java 安卓開發 Android開發 移動開發

現在做Android開發,已經是大好時機,網上有很多成熟的框架,我們應充分利用好這些,所謂前人種樹后人好乘涼,很多時候壓根不需要了解太多原理,只需站在巨人的丁丁上即可,當然您說您能力強,非要重復造輪子,無可厚非。

MVP模式

一套完整的Android通用框架

MVP

簡介

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

github地址

https://github.com/WuXiaolong/AndroidMVPSample

相關博客

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

依賴注入

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

一套完整的Android通用框架

簡介

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

github地址

https://github.com/WuXiaolong/PullLoadMoreRecyclerView

相關博客

PullLoadMoreRecyclerView

 

來自:http://wuxiaolong.me/2016/09/07/MyAndroidLibrary/

 

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