提交 312edc7e authored 作者: lgd's avatar lgd

1.修改组装文案

上级 0a87c399
package com.wd.workoffice.ui.adapter;
import android.text.TextUtils;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.wd.workoffice.R;
......@@ -33,8 +35,14 @@ public class ProTargetAddAdapter extends BaseQuickAdapter<ProductBean.RecordsBea
helper.setText(R.id.tv_name, item.getName());
helper.setText(R.id.tv_in_price,MathUtils.converData(item.getInternalPrice(),3));
helper.setText(R.id.tv_spec, item.getSpec());
if (!TextUtils.isEmpty(item.getCarNum())){
helper.setText(R.id.tv_num, MathUtils.converData(item.getCarNum() ,3));
helper.setText(R.id.tv_price, MathUtils.converData( item.getCarPrice() ,3));
helper.setVisible(R.id.ll_desc, true);
}else {
helper.setVisible(R.id.ll_desc, false);
}
if (type == 1) {
helper.setVisible(R.id.iv_cart, false);
}
......
......@@ -90,6 +90,13 @@
android:layout_marginTop="10mm"
android:gravity="center_vertical">
<LinearLayout
android:id="@+id/ll_desc"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center_vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
......@@ -101,6 +108,7 @@
android:id="@+id/tv_price"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:maxWidth="100mm"
android:textColor="@color/red_btn_bg"
android:textSize="13sp" />
......@@ -114,11 +122,12 @@
<TextView
android:id="@+id/tv_num"
android:layout_width="match_parent"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:maxWidth="100mm"
android:textColor="@color/red_btn_bg"
android:textSize="12sp" />
</LinearLayout>
<ImageView
android:id="@+id/iv_cart"
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论