Giter Club home page Giter Club logo

imageloader's Introduction

ImageLoader

Custom interface picture loading module, which supports Glide and so on(自定义接口的图片加载工具module,支持 Glide等)

效果图:
Alt text

使用,详见demo:
1、在项目中的build.gradle中增加 compile project(path: ':imageloader')
2、初始化: ImageLoader mImageLoader = new ImageLoader.Builder().placeHolder(0).disableCache(true).build();
3、加载图片:
//直角的图片展示
ImageLoaderUtils.getInstance().loadImage(this, mImageLoader, mImageView, mImageUrl, 0);
//圆角的图片展示,半径200
ImageLoaderUtils.getInstance().loadImage(this, mImageLoader, mRoundImageView, mImageUrl, 200);

最全的调用:
/**

  • 带有请求参数列表和成功后回调的加载图片
  • @param activity 对应的Activity实例
  • @param imgloader
  • @param imageView 加载的图片
  • @param imgUrl 图片的url
  • @param radius 圆角的弧度
  • @param map 发送请求时需要的头部参数列表
  • @param callback 请求成功后的回调接口
    */
    ImageLoaderUtils.getInstance() loadImage(Activity activity, ImageLoader imgloader, final ImageView imageView, final String imgUrl, int radius, final Map<String, String> map, final Callback callback)

imageloader's People

Contributors

xuningjack 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.