후원랭킹 전체보기 - 후원랭킹 활성화 스위치 추가

This commit is contained in:
2023-10-05 19:13:12 +09:00
parent 5a4355044f
commit d35b920470
19 changed files with 81 additions and 34 deletions

View File

@@ -62,9 +62,9 @@ class LiveRoomDonationRankingAdapter :
binding.ivCrown.visibility = View.VISIBLE
binding.root.setBackgroundResource(
if (items.size == 1) {
R.drawable.bg_round_corner_4_7_2b2635
R.drawable.bg_round_corner_4_7_13181b
} else {
R.drawable.bg_top_round_corner_4_7_2b2635
R.drawable.bg_top_round_corner_4_7_13181b
}
)
@@ -90,11 +90,11 @@ class LiveRoomDonationRankingAdapter :
if (items.size == 2) {
binding.root.setBackgroundResource(
R.drawable.bg_bottom_round_corner_4_7_2b2635
R.drawable.bg_bottom_round_corner_4_7_13181b
)
} else {
binding.root.setBackgroundColor(
ContextCompat.getColor(context, R.color.color_2b2635)
ContextCompat.getColor(context, R.color.color_13181b)
)
}
@@ -118,7 +118,7 @@ class LiveRoomDonationRankingAdapter :
binding.ivCrown.setImageResource(R.drawable.ic_crown_3)
binding.ivCrown.visibility = View.VISIBLE
binding.root.setBackgroundResource(
R.drawable.bg_bottom_round_corner_4_7_2b2635
R.drawable.bg_bottom_round_corner_4_7_13181b
)
lp.setMargins(