Commit 1ed5bad9 authored by chengkun's avatar chengkun

设置默认图片

parent db77ca8d
......@@ -107,6 +107,15 @@ class OrderListAdapter : BaseQuickAdapter<OrderWebData, BaseViewHolder>(R.layout
holder.itemView.findViewById<LinearLayout>(R.id.ll_order_image1).visibility = View.VISIBLE
holder.itemView.findViewById<LinearLayout>(R.id.ll_order_image2).visibility = View.VISIBLE
holder.itemView.findViewById<LinearLayout>(R.id.ll_order_image3).visibility = View.VISIBLE
Glide.with(context).load(R.drawable.icon_default_order_pic).apply(RequestOptions().transform(
CenterCrop(), RoundedCorners(
DensityUtil.dp2px(roundRadus)))).into(holder.itemView.findViewById(R.id.round_image1))
Glide.with(context).load(R.drawable.icon_default_order_pic).apply(RequestOptions().transform(
CenterCrop(), RoundedCorners(
DensityUtil.dp2px(roundRadus)))).into(holder.itemView.findViewById(R.id.round_image2))
Glide.with(context).load(R.drawable.icon_default_order_pic).apply(RequestOptions().transform(
CenterCrop(), RoundedCorners(
DensityUtil.dp2px(roundRadus)))).into(holder.itemView.findViewById(R.id.round_image3))
}
private fun setOrderStatus(data: OrderWebData, holder: BaseViewHolder) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment