Closed ganghee closed 5 years ago
when {
dataList[position].signed_change_rate > 0 -> holder.signed_change_rate.textColor =
ContextCompat.getColor(ctx, R.color.diff_up)
dataList[position].signed_change_rate < 0 -> holder.signed_change_rate.textColor =
ContextCompat.getColor(ctx, R.color.diff_down)
else -> holder.signed_change_rate.textColor = ContextCompat.getColor(ctx, R.color.black)
}