An open API service indexing awesome lists of open source software.

https://github.com/carguo/gsyimageloader

GSYImageLoader图片加载管理,集成Glide、Picasso、Fresco的kotlin图片管理器,一键切换图片加载类,提供常用的图片相关功能接口。
https://github.com/carguo/gsyimageloader

fresco glide imageloader kotlin picasso

Last synced: 20 days ago
JSON representation

GSYImageLoader图片加载管理,集成Glide、Picasso、Fresco的kotlin图片管理器,一键切换图片加载类,提供常用的图片相关功能接口。

Awesome Lists containing this project

README

        

![](https://github.com/CarGuo/GSYImageLoader/blob/master/logo.png)

# GSYImageLoader 图片加载管理器

集成Glide、Picasso、Fresco的kotlin图片管理器,一键切换图片加载类,提供常用的图片相关功能接口。

[![](https://jitpack.io/v/CarGuo/GSYImageLoader.svg)](https://jitpack.io/#CarGuo/GSYImageLoader)
[![Build Status](https://travis-ci.org/CarGuo/GSYImageLoader.svg?branch=master)](https://travis-ci.org/CarGuo/GSYImageLoader)
[![GitHub issues](https://img.shields.io/github/issues/CarGuo/GSYImageLoader.svg)](https://github.com/CarGuo/GSYImageLoader/issues)
[![GitHub forks](https://img.shields.io/github/forks/CarGuo/GSYImageLoader.svg)](https://github.com/CarGuo/GSYImageLoader/network)
[![GitHub stars](https://img.shields.io/github/stars/CarGuo/GSYImageLoader.svg)](https://github.com/CarGuo/GSYImageLoader/stargazers)
[![GitHub license](https://img.shields.io/github/license/CarGuo/GSYImageLoader.svg)](https://github.com/CarGuo/GSYImageLoader/blob/master/LICENSE)

状态 | 功能
-------- | ---
**已完成**|**Glide相关**
**已完成**|**Picasso相关**
**已完成**|**Fresco相关**

### 一、依赖版本

#### 1、在project下的build.gradle添加
```
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
```
#### 2、在module下的build.gradle添加
```
dependencies {
implementation 'com.github.CarGuo.GSYImageLoader:GSYGlideLoader:v1.0.1'

//选择你需要的
implementation 'com.github.CarGuo.GSYImageLoader:GSYPicassoLoader:v1.0.1'
implementation 'com.github.CarGuo.GSYImageLoader:GSYFrescoImageLoader:v1.0.1'
implementation 'com.github.CarGuo.GSYImageLoader:GSYImageLoader:v1.0.1'
}

```

### 二、当前版本核心

* GSYGlideLoader 当前版本 Glide 4.5.0

* GSYPicassoLoader 当前版本 Picasso 2.5.2

* GSYFrescoLoader 当前版本 Fresco 1.8.0

### 三、使用方法

#### 1、在Application中初始化

```
override fun onCreate() {
GSYImageLoaderManager.initialize(GSYGlideImageLoader(this))
}
```

#### 2、加载图片

```
GSYImageLoaderManager.sInstance.imageLoader().loadImage(loadOption, holder.imageView, object : IGSYImageLoader.Callback {
override fun onStart() {

}

override fun onSuccess(result: Any?) {
}

override fun onFail(error: Exception?) {
}
})
```

#### 3、更多使用请参考DEMO

### [四、API接口](https://github.com/CarGuo/GSYImageLoader/blob/master/API.md)

### [五、其他资料-Android图片加载开源库深度推荐](https://www.jianshu.com/p/cd058a924288)