|
|
|
|
@ -15,6 +15,7 @@ import com.github.tvbox.osc.bean.VodInfo; |
|
|
|
|
import com.github.tvbox.osc.picasso.RoundTransformation; |
|
|
|
|
import com.github.tvbox.osc.util.DefaultConfig; |
|
|
|
|
import com.github.tvbox.osc.util.HawkConfig; |
|
|
|
|
import com.github.tvbox.osc.util.ImgUtil; |
|
|
|
|
import com.github.tvbox.osc.util.MD5; |
|
|
|
|
import com.squareup.picasso.Picasso; |
|
|
|
|
|
|
|
|
|
@ -53,7 +54,8 @@ public class HistoryAdapter extends BaseQuickAdapter<VodInfo, BaseViewHolder> { |
|
|
|
|
if(bean!=null){ |
|
|
|
|
tvYear.setText(bean.getName()); |
|
|
|
|
}else { |
|
|
|
|
tvYear.setVisibility(View.GONE); |
|
|
|
|
tvYear.setText("搜"); |
|
|
|
|
// tvYear.setVisibility(View.GONE);
|
|
|
|
|
} |
|
|
|
|
/*TextView tvLang = helper.getView(R.id.tvLang); |
|
|
|
|
if (TextUtils.isEmpty(item.lang)) { |
|
|
|
|
@ -97,10 +99,10 @@ public class HistoryAdapter extends BaseQuickAdapter<VodInfo, BaseViewHolder> { |
|
|
|
|
.roundRadius(AutoSizeUtils.mm2px(mContext, 10), RoundTransformation.RoundType.ALL)) |
|
|
|
|
.placeholder(R.drawable.img_loading_placeholder) |
|
|
|
|
.noFade() |
|
|
|
|
.error(R.drawable.img_loading_placeholder) |
|
|
|
|
.error(ImgUtil.createTextDrawable(item.name)) |
|
|
|
|
.into(ivThumb); |
|
|
|
|
} else { |
|
|
|
|
ivThumb.setImageResource(R.drawable.img_loading_placeholder); |
|
|
|
|
ivThumb.setImageDrawable(ImgUtil.createTextDrawable(item.name)); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |