Commit 7d8a1be7 authored by yinjiacheng's avatar yinjiacheng

update 确认订单页、订单详情页商品图片显示样式

parent 726e429c
......@@ -38,7 +38,7 @@ class OrderConfirmCommodityListAdapter : BaseQuickAdapter<GoodsDto, BaseViewHold
Glide.with(context).load(item.picUrl)
.apply(
RequestOptions()
.transform(CenterInside(), RoundedCorners(DensityUtil.dp2px(10F)))
.transform(CenterCrop(), RoundedCorners(DensityUtil.dp2px(10F)))
.error(R.drawable.img_order_commodity_placeholder)
.placeholder(R.drawable.img_order_commodity_placeholder)
)
......
......@@ -32,7 +32,7 @@ class OrderDetailCommodityListItemViewModel : BaseViewModel() {
Glide.with(target.context).load(url)
.apply(
RequestOptions()
.transform(CenterCrop(), RoundedCorners(DensityUtil.dp2px(12F)))
.transform(CenterCrop(), RoundedCorners(DensityUtil.dp2px(10F)))
.error(R.drawable.img_order_commodity_placeholder)
.placeholder(R.drawable.img_order_commodity_placeholder)
)
......
......@@ -10,7 +10,6 @@
android:id="@+id/iv_commodity_pic"
android:layout_width="@dimen/dp82"
android:layout_height="@dimen/dp60"
android:scaleType="centerInside"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0"
......
......@@ -24,7 +24,6 @@
android:id="@+id/iv_commodity_pic"
android:layout_width="@dimen/dp82"
android:layout_height="@dimen/dp60"
android:scaleType="centerInside"
android:visibility="@{data.descPicUrl.size() > 0 ? View.VISIBLE : View.GONE}"
app:commodityImageUrl='@{data.descPicUrl.size() > 0 ? data.descPicUrl.get(0) : ""}'
app:layout_constraintStart_toStartOf="parent"
......
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