Glide回调设置Bitmap对象

来源:互联网 发布:数据分析员 编辑:程序博客网 时间:2024/06/08 03:49
public abstract class SimpleTarget<Z>
extends BaseTarget<Z>

A simple Target base class with default (usually noop) implementations of non essential methods that allows the caller to specify an exact width/height. Typicaly use cases look something like this:

  Glide.load("http://somefakeurl.com/fakeImage.jpeg")      .asBitmap()      .fitCenter()      .into(new SimpleTarget(250, 250) {          @Override          public void onResourceReady(Bitmap resource, GlideAnimation glideAnimation) {              // Do something with bitmap here.          }      }); } 
0 5
原创粉丝点击