首页、支付功能
This commit is contained in:
@@ -21,7 +21,7 @@ class CollectedFoodNewAdapter(var list: MutableList<CollectedFoodBean>) :
|
||||
|
||||
override fun onBindViewHolder(holder: VH, position: Int, item: CollectedFoodBean?) {
|
||||
holder.binding.tvFoodName.text = item?.foodName
|
||||
holder.binding.tvCollectedNum.text = "已采集153"
|
||||
holder.binding.tvCollectedNum.text = "已采集${item?.count}"
|
||||
}
|
||||
|
||||
}
|
||||
@@ -26,7 +26,7 @@ class SearchFoodAdapter(var list: MutableList<FoodInfo>) :
|
||||
text = item.foodName
|
||||
} else {
|
||||
val score = (item.score / 100.0).format2String(2)
|
||||
text = "${item.foodName}\n${score}%"
|
||||
text = item.foodName + if (item.score != 0) "-${score}%" else ""
|
||||
}
|
||||
isChecked = item.isChecked
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user