本文整理汇总了Java中com.bumptech.glide.Glide.clear方法的典型用法代码示例。如果您正苦于以下问题:Java Glide.clear方法的具体用法?Java Glide.clear怎么用?Java Glide.clear使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.bumptech.glide.Glide
的用法示例。
在下文中一共展示了Glide.clear方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onBindViewHolder
import com.bumptech.glide.Glide; //导入方法依赖的package包/类
@Override
public void onBindViewHolder(PhotoViewHolder holder, int position) {
Photo photo = mPhotosList.get(position);
Glide.clear(holder.mImageView);
Glide.with(mContext)
.load(photo.getUri())
.asBitmap()
.diskCacheStrategy(DiskCacheStrategy.SOURCE)
.into(holder.mImageView);
holder.mTextView.setText(photo.getTitle());
}
示例2: bindViewHolder
import com.bumptech.glide.Glide; //导入方法依赖的package包/类
@Override
public void bindViewHolder(final FlexibleAdapter adapter, ViewHolder holder, int position, List payloads) {
Context context = holder.itemView.getContext();
holder.mQuantityLikes.setText(context.getResources().getString(R.string.likes, getLikes()));
holder.mImageFavourite.flipSilently(getStarred());
//Load image via Glide
Glide.clear(holder.mImage);
Glide.with(context).load(url).crossFade(500).into(holder.mImage);
}
示例3: onBackPressed
import com.bumptech.glide.Glide; //导入方法依赖的package包/类
public void onBackPressed() {
Glide.clear(fullImage);
fullImage.setImageDrawable(null);
if (url.contains(".gif")){
Glide.clear(gif);
gif.setDrawable(null);
}
finish();
}
示例4: onViewRecycled
import com.bumptech.glide.Glide; //导入方法依赖的package包/类
@Override
public void onViewRecycled() {
Glide.clear(model_image);
}
示例5: clearContent
import com.bumptech.glide.Glide; //导入方法依赖的package包/类
void clearContent() {
Glide.clear(mAvatar);
((InnerAdapter)mRecyclerView.getAdapter()).clearData();
}
示例6: onViewRecycled
import com.bumptech.glide.Glide; //导入方法依赖的package包/类
@Override
public void onViewRecycled(StickerViewHolder holder) {
super.onViewRecycled(holder);
Glide.clear(holder.image);
}
示例7: onViewRecycled
import com.bumptech.glide.Glide; //导入方法依赖的package包/类
@Override
public void onViewRecycled() {
Glide.clear(user_image);
}
示例8: onViewRecycled
import com.bumptech.glide.Glide; //导入方法依赖的package包/类
@Override
public void onViewRecycled() {
Glide.clear(image);
}
示例9: cancel
import com.bumptech.glide.Glide; //导入方法依赖的package包/类
@Override public void cancel(@NonNull ImageView imageView) {
Glide.clear(imageView);
}
示例10: onViewRecycled
import com.bumptech.glide.Glide; //导入方法依赖的package包/类
@Override
public void onViewRecycled() {
Glide.clear(mAvatar);
Glide.clear(mSeriesImage);
}
示例11: clear
import com.bumptech.glide.Glide; //导入方法依赖的package包/类
public void clear() {
if (isContextValid()) Glide.clear(image);
if (transferControls.isPresent()) getTransferControls().clear();
slide = null;
}
示例12: clear
import com.bumptech.glide.Glide; //导入方法依赖的package包/类
private void clear(ImageView holder) {
Glide.clear(holder);
// remove the placeholder (optional); read comments below
holder.setImageDrawable(null);
}
示例13: onViewRecycled
import com.bumptech.glide.Glide; //导入方法依赖的package包/类
@Override public void onViewRecycled(PhotoViewHolder holder) {
Glide.clear(holder.ivPhoto);
super.onViewRecycled(holder);
}
示例14: onViewRecycled
import com.bumptech.glide.Glide; //导入方法依赖的package包/类
@Override
public void onViewRecycled(TweetSelectImageHolder holder) {
Glide.clear(holder.mImage);
}
示例15: onViewRecycled
import com.bumptech.glide.Glide; //导入方法依赖的package包/类
@Override
public void onViewRecycled() {
Glide.clear(notificationImg);
}