|
|
@@ -6,6 +6,7 @@ import android.widget.ImageView;
|
|
|
import android.widget.TextView;
|
|
|
|
|
|
import com.bumptech.glide.Glide;
|
|
|
+import com.bumptech.glide.request.RequestOptions;
|
|
|
|
|
|
import kr.co.zumo.app.R;
|
|
|
import kr.co.zumo.app.lifeplus.bean.api.CategoryRecommendBean;
|
|
|
@@ -37,7 +38,9 @@ public class CustomImageTextViewHolder extends RecyclerView.ViewHolder {
|
|
|
public void bind(CategoryRecommendBean bean) {
|
|
|
|
|
|
if (null != bean) {
|
|
|
- Glide.with(imageViewMainCategory).load(bean.getImageUrl()).into(imageViewMainCategory);
|
|
|
+ Glide.with(imageViewMainCategory).load(bean.getImageUrl())
|
|
|
+ .apply(RequestOptions.circleCropTransform())
|
|
|
+ .into(imageViewMainCategory);
|
|
|
textViewMainCategory.setText(bean.getTitle());
|
|
|
}
|
|
|
|