本文共 630 字,大约阅读时间需要 2 分钟。
public abstract class SimpleTargetextends <Z>
A simple 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. } }); }