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

1.修改组装文案

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