本文整理了Java中com.squareup.picasso.Picasso.cancelRequest()
方法的一些代码示例,展示了Picasso.cancelRequest()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Picasso.cancelRequest()
方法的具体详情如下:
包路径:com.squareup.picasso.Picasso
类名称:Picasso
方法名:cancelRequest
暂无
代码示例来源:origin: pedrovgs/Renderers
/**
* Use picasso to render the video thumbnail into the thumbnail widget using a temporal
* placeholder.
*
* @param video to get the rendered thumbnail.
*/
private void renderThumbnail(Video video) {
Picasso.with(getContext()).cancelRequest(thumbnail);
Picasso.with(getContext())
.load(video.getThumbnail())
.placeholder(R.drawable.placeholder)
.into(thumbnail);
}
代码示例来源:origin: SmartDengg/RxBlur
@Override protected void onUnsubscribe() {
Picasso.with(context).cancelRequest(target);
PicassoBlurOnSubscribe.this.context = null;
}
});
代码示例来源:origin: SmartDengg/RxBlur
@Override protected void onUnsubscribe() {
Picasso.with(context).cancelRequest(target);
PaintBlurOnSubscribe.this.context = null;
}
});
代码示例来源:origin: SmartDengg/RxBlur
@Override protected void onUnsubscribe() {
Picasso.with(context).cancelRequest(target);
FastBlurOnSubscribe.this.context = null;
}
});
代码示例来源:origin: mikepenz/Crossfader
@Override
public void cancel(ImageView imageView) {
Picasso.with(imageView.getContext()).cancelRequest(imageView);
}
});
代码示例来源:origin: mikepenz/CrossfadeDrawerLayout
@Override
public void cancel(ImageView imageView) {
Picasso.with(imageView.getContext()).cancelRequest(imageView);
}
});
代码示例来源:origin: cesarferreira/RxPeople
private void setupImage(ImageView image, String imageUrl) {
image.setImageBitmap(null);
Picasso.with(image.getContext()).cancelRequest(image);
Picasso.with(image.getContext()).load(imageUrl).into(image);
}
代码示例来源:origin: flowolf86/AndroidSwipeToDelete
/**
* Load list item image using picasso
*
* @param image
* @param imageUrl
*/
private void setupImage(@NonNull final ImageView image, @NonNull final String imageUrl) {
image.setImageBitmap(null);
Picasso.with(image.getContext()).cancelRequest(image);
Picasso.with(image.getContext()).load(imageUrl).into(image);
}
代码示例来源:origin: SmartDengg/RxBlur
@Override protected void onUnsubscribe() {
Picasso.with(context).cancelRequest(target);
if (AnimationBlurOnSubscribe.this.blurAnimator != null) {
AnimationBlurOnSubscribe.this.blurAnimator.removeAllUpdateListeners();
AnimationBlurOnSubscribe.this.blurAnimator.cancel();
}
AnimationBlurOnSubscribe.this.context = null;
}
});
代码示例来源:origin: sregg/spotify-tv
@Override
public void onDestroy() {
super.onDestroy();
Picasso.with(getActivity()).cancelRequest(mTarget);
}
代码示例来源:origin: LukeMee/NineGridlayout
@Override
public void onDetachedFromWindow() {
Picasso.with(getContext()).cancelRequest(this);
isAttachedToWindow = false;
setImageBitmap(null);
super.onDetachedFromWindow();
}
代码示例来源:origin: layerhq/Atlas-Android
ImageTarget target = mImageTargets.remove(removed);
if (target != null) {
mPicasso.cancelRequest(target);
recyclableTargets.add(target);
mPicasso.cancelRequest(existingTarget);
toLoad.add(existingTarget);
mPicasso.cancelRequest(target);
代码示例来源:origin: stackoverflow.com
picasso.cancelRequest(target);
unSubscribed = true;
代码示例来源:origin: contentful/gallery-app-android
@Override public void onDestroy() {
cancelPaletteTask();
if (target != null) {
Picasso.get().cancelRequest(target);
target = null;
}
bitmap = null;
super.onDestroy();
}
内容来源于网络,如有侵权,请联系作者删除!