现在做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 自定义 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

最后

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

results matching ""

    No results matching ""