|
|
@@ -41,13 +41,15 @@ public class CustomImageTextViewHolder extends RecyclerView.ViewHolder {
|
|
|
}
|
|
|
|
|
|
public void attach() {
|
|
|
-
|
|
|
if (null != bean) {
|
|
|
Glide.with(imageViewMainCategory)
|
|
|
.asBitmap()
|
|
|
.load(bean.getImageUrl())
|
|
|
+ .apply(new RequestOptions().skipMemoryCache(true))
|
|
|
+// .transition(new BitmapTransitionOptions().crossFade(100))
|
|
|
.apply(RequestOptions.circleCropTransform())
|
|
|
.into(imageViewMainCategory);
|
|
|
+
|
|
|
textViewMainCategory.setText(bean.getTitleWithTrim());
|
|
|
}
|
|
|
|
|
|
@@ -61,6 +63,7 @@ public class CustomImageTextViewHolder extends RecyclerView.ViewHolder {
|
|
|
public void detach() {
|
|
|
if (null != imageViewMainCategory) {
|
|
|
Glide.with(imageViewMainCategory).clear(imageViewMainCategory);
|
|
|
+ itemView.setOnClickListener(null);
|
|
|
}
|
|
|
}
|
|
|
}
|