Skip to content
项目
Groups
代码片段
帮助
正在加载...
Sign in / Register
Toggle navigation
W
workoffice
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图表
统计图
Create a new issue
作业
提交
议题看板
Open sidebar
冷广德
workoffice
Commits
312edc7e
提交
312edc7e
authored
6月 21, 2020
作者:
lgd
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1.修改组装文案
上级
0a87c399
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
19 行增加
和
2 行删除
+19
-2
ProTargetAddAdapter.java
...ava/com/wd/workoffice/ui/adapter/ProTargetAddAdapter.java
+8
-0
item_product_target_pro.xml
app/src/main/res/layout/item_product_target_pro.xml
+11
-2
没有找到文件。
app/src/main/java/com/wd/workoffice/ui/adapter/ProTargetAddAdapter.java
浏览文件 @
312edc7e
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
());
if
(!
TextUtils
.
isEmpty
(
item
.
getCarNum
())){
helper
.
setText
(
R
.
id
.
tv_num
,
MathUtils
.
converData
(
item
.
getCarNum
()
,
3
));
helper
.
setText
(
R
.
id
.
tv_num
,
MathUtils
.
converData
(
item
.
getCarNum
()
,
3
));
helper
.
setText
(
R
.
id
.
tv_price
,
MathUtils
.
converData
(
item
.
getCarPrice
()
,
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
);
}
}
...
...
app/src/main/res/layout/item_product_target_pro.xml
浏览文件 @
312edc7e
...
@@ -90,6 +90,13 @@
...
@@ -90,6 +90,13 @@
android:layout_marginTop=
"10mm"
android:layout_marginTop=
"10mm"
android:gravity=
"center_vertical"
>
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
<TextView
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
...
@@ -101,6 +108,7 @@
...
@@ -101,6 +108,7 @@
android:id=
"@+id/tv_price"
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:maxWidth=
"100mm"
android:textColor=
"@color/red_btn_bg"
android:textColor=
"@color/red_btn_bg"
android:textSize=
"13sp"
/>
android:textSize=
"13sp"
/>
...
@@ -114,11 +122,12 @@
...
@@ -114,11 +122,12 @@
<TextView
<TextView
android:id=
"@+id/tv_num"
android:id=
"@+id/tv_num"
android:layout_width=
"match_par
ent"
android:layout_width=
"wrap_cont
ent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_weight=
"1
"
android:maxWidth=
"100mm
"
android:textColor=
"@color/red_btn_bg"
android:textColor=
"@color/red_btn_bg"
android:textSize=
"12sp"
/>
android:textSize=
"12sp"
/>
</LinearLayout>
<ImageView
<ImageView
android:id=
"@+id/iv_cart"
android:id=
"@+id/iv_cart"
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论