版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qingfeng812/article/details/50209657
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.
}
});
}