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); } }); } }
public void loadOnMainThread( final RequestBuilder<Drawable> builder, ImageView imageView) { loadOnMainThread(builder, new DrawableImageViewTarget(imageView)); }
public void loadUntilFirstFinish( final RequestBuilder<Drawable> builder, ImageView imageView) { loadUntilFirstFinish(builder, new DrawableImageViewTarget(imageView)); }