一套完整的 Android 通用框架

19,255 阅读3分钟

现在做Android开发,已经是大好时机,网上有很多成熟的框架,我们应充分利用好这些,所谓前人种树后人好乘凉,很多时候压根不需要了解太多原理,只需站在巨人的丁丁上即可,当然您说您能力强,非要重复造轮子,无可厚非。

MVP模式

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 自定义 GlideModule 实例:接受自签名证书的 HTTPSModule 实例:自定义缓存Module 实例:用自定义尺寸优化加载的图片动态使用 Model Loader如何旋转图像系列综述

Picassogithub之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

相关博客

RxJavaRxJava Essentials CNReactiveX文档中文翻译给 Android 开发者的 RxJava 详解

事件总线

RxBus

简介

基于RxJava写的事件总线

相关博客

RxBus

下拉刷新

PullLoadMoreRecyclerView

查看图片

简介

实现RecyclerView下拉刷新和上拉加载更多以及RecyclerView线性、网格、瀑布流效果演示。适用于只需要简单地实现下拉刷新和上拉加载效果。

github地址

https://github.com/WuXiaolong/PullLoadMoreRecyclerView

相关博客

PullLoadMoreRecyclerView

最后

知道了解以上开源框架,开发又何忧!我总结的可能还不够全,如果您觉得实际项目中还有必用到的库,欢迎留言哈。

温馨提示:为嘛链接都不能点击呢?这是因为微信公众号不支持外链,请点击底部【阅读原文→【访问原网页】跳转至我的博客。

查看图片

查看图片

欢迎长按上图 识别图中二维码或者微信扫一扫关注我的公众号。