지금 라이브 중 - 라이브 아이템 유/무료 표시 방식 수정
- 무료 배경색 : #111111 - 유료 배경색 : #DD4500 - 유료 표시 - white 캔과 함께 100 과 같이 가격으로 변경
This commit is contained in:
@@ -36,11 +36,18 @@ class LiveNowAdapter(
|
||||
}
|
||||
|
||||
if (item.price > 0) {
|
||||
binding.tvPrice.text = "유료"
|
||||
binding.tvPrice.setBackgroundResource(R.drawable.bg_round_corner_10_881609)
|
||||
binding.tvPrice.text = "${item.price}"
|
||||
binding.tvPrice.setCompoundDrawablesWithIntrinsicBounds(
|
||||
R.drawable.ic_can_white,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
)
|
||||
binding.tvPrice.setBackgroundResource(R.drawable.bg_round_corner_13_3_dd4500)
|
||||
} else {
|
||||
binding.tvPrice.text = "무료"
|
||||
binding.tvPrice.setBackgroundResource(R.drawable.bg_round_corner_10_3bb9f1)
|
||||
binding.tvPrice.setCompoundDrawables(null, null, null, null)
|
||||
binding.tvPrice.setBackgroundResource(R.drawable.bg_round_corner_13_3_111111)
|
||||
}
|
||||
|
||||
if (item.tags.isNotEmpty()) {
|
||||
|
Reference in New Issue
Block a user