Java 类com.bumptech.glide.request.target.DrawableImageViewTarget 实例源码

项目:maklib    文件:ImageItemView.java   
private void changeViewState(){
    imageName.setText(mainObject.getFileName());

    if (image.getDrawable() == null) {
        Glide.with(parentActivity)
                .load(mainObject.getPath())
                .into(new DrawableImageViewTarget(image) {
                    @Override
                    public void onResourceReady(Drawable resource, @Nullable Transition<? super Drawable> transition) {
                        super.onResourceReady(resource, transition);
                        circleProgress.setVisibility(View.GONE);
                        mainObject.setState(ImageState.unselected);
                    }
                });
    }
}
项目:GitHub    文件:ConcurrencyHelper.java   
public void loadOnMainThread(
    final RequestBuilder<Drawable> builder, ImageView imageView) {
  loadOnMainThread(builder, new DrawableImageViewTarget(imageView));
}
项目:GitHub    文件:ConcurrencyHelper.java   
public void loadUntilFirstFinish(
    final RequestBuilder<Drawable> builder, ImageView imageView) {
  loadUntilFirstFinish(builder, new DrawableImageViewTarget(imageView));
}