Giter Site home page Giter Site logo

carguo / gsyimageloader Goto Github PK

View Code? Open in Web Editor NEW
40.0 3.0 5.0 275 KB

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

License: Apache License 2.0

Kotlin 100.00%
imageloader glide picasso fresco kotlin

gsyimageloader's Introduction

GSYImageLoader 图片加载管理器

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

Build Status GitHub issues GitHub forks GitHub stars GitHub 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

gsyimageloader's People

Contributors

carguo avatar carguosmall avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.