|
|
@@ -11,6 +11,7 @@ import cn.muchinfo.rma.view.autoWidget.autoSize
|
|
|
import cn.muchinfo.rma.view.autoWidget.onThrottleFirstClick
|
|
|
import cn.muchinfo.rma.view.autoWidget.textColorInt
|
|
|
import cn.muchinfo.rma.view.autoWidget.textSizeAuto
|
|
|
+import cn.muchinfo.rma.view.autoWidget.utils.NumberUtils
|
|
|
import cn.muchinfo.rma.view.base.future.trade.itemView
|
|
|
import cn.muchinfo.rma.view.base.home.ductaudit.DuctAuditViewModel
|
|
|
import cn.muchinfo.rma.view.base.home.ductaudit.hedgeratio.HedgeRatioAuditActivity
|
|
|
@@ -47,7 +48,7 @@ class ConvertCoefficientViewHolder(private val activity : AppCompatActivity, pri
|
|
|
text = it?.wrstandardname
|
|
|
}
|
|
|
textSizeAuto = 29
|
|
|
- textColorInt = R.color.rma_hint_text_color_ccc
|
|
|
+ textColorInt = R.color.rma_black_33
|
|
|
}.lparams(wrapContent, wrapContent){
|
|
|
marginStart = autoSize(32)
|
|
|
topMargin = autoSize(20)
|
|
|
@@ -58,9 +59,9 @@ class ConvertCoefficientViewHolder(private val activity : AppCompatActivity, pri
|
|
|
text = it?.deliverygoodsname
|
|
|
}
|
|
|
textSizeAuto = 29
|
|
|
- textColorInt = R.color.rma_hint_text_color_ccc
|
|
|
+ textColorInt = R.color.rma_black_33
|
|
|
}.lparams(wrapContent, wrapContent)
|
|
|
- }.lparams(0, autoSize(80),1f)
|
|
|
+ }.lparams(0, autoSize(100),1f)
|
|
|
|
|
|
verticalLayout {
|
|
|
gravity = Gravity.CENTER
|
|
|
@@ -70,31 +71,31 @@ class ConvertCoefficientViewHolder(private val activity : AppCompatActivity, pri
|
|
|
text = it?.deliverygoodsname
|
|
|
}
|
|
|
textSizeAuto = 29
|
|
|
- textColorInt = R.color.rma_hint_text_color_ccc
|
|
|
+ textColorInt = R.color.rma_black_33
|
|
|
}.lparams(wrapContent, wrapContent)
|
|
|
- }.lparams(0, autoSize(80),1f)
|
|
|
+ }.lparams(0, autoSize(100),1f)
|
|
|
|
|
|
verticalLayout {
|
|
|
gravity = Gravity.CENTER_HORIZONTAL
|
|
|
//原值
|
|
|
textView {
|
|
|
data.bindOptional(context){
|
|
|
- text = it?.beforevalue
|
|
|
+ text = NumberUtils.roundNum(it?.beforevalue?.toDouble()?.times(100) ?: 0.0,2)
|
|
|
}
|
|
|
textSizeAuto = 29
|
|
|
- textColorInt = R.color.rma_hint_text_color_ccc
|
|
|
+ textColorInt = R.color.rma_black_33
|
|
|
}.lparams(wrapContent, wrapContent){
|
|
|
topMargin = autoSize(20)
|
|
|
}
|
|
|
//新值
|
|
|
textView {
|
|
|
data.bindOptional(context){
|
|
|
- text = it?.aftervalue
|
|
|
+ text = NumberUtils.roundNum(it?.aftervalue?.toDouble()?.times(100) ?: 0.0,2)
|
|
|
}
|
|
|
textSizeAuto = 29
|
|
|
- textColorInt = R.color.rma_hint_text_color_ccc
|
|
|
+ textColorInt = R.color.rma_black_33
|
|
|
}.lparams(wrapContent, wrapContent)
|
|
|
- }.lparams(0, autoSize(80),1f)
|
|
|
+ }.lparams(0, autoSize(100),1f)
|
|
|
|
|
|
verticalLayout {
|
|
|
gravity = Gravity.CENTER_VERTICAL or Gravity.RIGHT
|
|
|
@@ -104,11 +105,9 @@ class ConvertCoefficientViewHolder(private val activity : AppCompatActivity, pri
|
|
|
text = it?.applytime
|
|
|
}
|
|
|
textSizeAuto = 29
|
|
|
- textColorInt = R.color.rma_hint_text_color_ccc
|
|
|
- }.lparams(wrapContent, wrapContent){
|
|
|
- marginEnd = autoSize(32)
|
|
|
- }
|
|
|
- }.lparams(0, autoSize(80),1f)
|
|
|
+ textColorInt = R.color.rma_black_33
|
|
|
+ }.lparams(wrapContent, wrapContent)
|
|
|
+ }.lparams(0, autoSize(100),1f)
|
|
|
}.lparams(matchParent, autoSize(100))
|
|
|
|
|
|
linearLayout {
|