| | |
| | | override fun onBind(holder: ViewHolder, position: Int, data: Double) { |
| | | holder.setText(R.id.tv_name,if (position == 0) "月度会员" else if (position == 1) "季度会员" else "年度会员") |
| | | holder.setText(R.id.tv_price,SpanBuilder("¥%.2f".format(data)).size(0,1,15).build()) |
| | | holder.setText(R.id.tv_daily_price,"¥%.2f天".format(data/30)) |
| | | holder.setText(R.id.tv_daily_price,"¥%.2f/天".format(data/(if (position == 0)30 else if (position == 1) 90 else 365))) |
| | | val bg = holder.bind<View>(R.id.cl_bg) |
| | | val tvName = holder.bind<TextView>(R.id.tv_name) |
| | | val tvPrice = holder.bind<TextView>(R.id.tv_price) |
| | |
| | | tvDaily.textColorResource = R.color.textColor99 |
| | | } |
| | | } |
| | | |
| | | } |