fix(live): 라이브룸 후원·하트 랭킹 왕관 UI를 동일화한다
This commit is contained in:
@@ -61,10 +61,7 @@ class LiveRoomDonationRankingAdapter :
|
|||||||
|
|
||||||
when (position) {
|
when (position) {
|
||||||
0 -> {
|
0 -> {
|
||||||
binding.ivBg.setImageResource(R.drawable.bg_circle_ffdc00_ffb600)
|
binding.ivCrown.setImageResource(R.drawable.img_rank_1)
|
||||||
binding.ivBg.visibility = View.VISIBLE
|
|
||||||
|
|
||||||
binding.ivCrown.setImageResource(R.drawable.ic_crown_1)
|
|
||||||
binding.ivCrown.visibility = View.VISIBLE
|
binding.ivCrown.visibility = View.VISIBLE
|
||||||
binding.root.setBackgroundResource(
|
binding.root.setBackgroundResource(
|
||||||
if (items.size == 1) {
|
if (items.size == 1) {
|
||||||
@@ -88,10 +85,7 @@ class LiveRoomDonationRankingAdapter :
|
|||||||
}
|
}
|
||||||
|
|
||||||
1 -> {
|
1 -> {
|
||||||
binding.ivBg.setImageResource(R.drawable.bg_circle_ffffff_9f9f9f)
|
binding.ivCrown.setImageResource(R.drawable.img_rank_2)
|
||||||
binding.ivBg.visibility = View.VISIBLE
|
|
||||||
|
|
||||||
binding.ivCrown.setImageResource(R.drawable.ic_crown_2)
|
|
||||||
binding.ivCrown.visibility = View.VISIBLE
|
binding.ivCrown.visibility = View.VISIBLE
|
||||||
|
|
||||||
if (items.size == 2) {
|
if (items.size == 2) {
|
||||||
@@ -118,10 +112,7 @@ class LiveRoomDonationRankingAdapter :
|
|||||||
}
|
}
|
||||||
|
|
||||||
2 -> {
|
2 -> {
|
||||||
binding.ivBg.setImageResource(R.drawable.bg_circle_e6a77a_c67e4a)
|
binding.ivCrown.setImageResource(R.drawable.img_rank_3)
|
||||||
binding.ivBg.visibility = View.VISIBLE
|
|
||||||
|
|
||||||
binding.ivCrown.setImageResource(R.drawable.ic_crown_3)
|
|
||||||
binding.ivCrown.visibility = View.VISIBLE
|
binding.ivCrown.visibility = View.VISIBLE
|
||||||
binding.root.setBackgroundResource(
|
binding.root.setBackgroundResource(
|
||||||
R.drawable.bg_bottom_round_corner_4_7_13181b
|
R.drawable.bg_bottom_round_corner_4_7_13181b
|
||||||
@@ -137,8 +128,6 @@ class LiveRoomDonationRankingAdapter :
|
|||||||
}
|
}
|
||||||
|
|
||||||
else -> {
|
else -> {
|
||||||
binding.ivBg.setImageResource(0)
|
|
||||||
binding.ivBg.visibility = View.GONE
|
|
||||||
binding.ivCrown.visibility = View.GONE
|
binding.ivCrown.visibility = View.GONE
|
||||||
binding.root.setBackgroundResource(0)
|
binding.root.setBackgroundResource(0)
|
||||||
binding.root.background = null
|
binding.root.background = null
|
||||||
|
|||||||
@@ -53,10 +53,7 @@ class LiveRoomHeartRankingAdapter :
|
|||||||
|
|
||||||
when (position) {
|
when (position) {
|
||||||
0 -> {
|
0 -> {
|
||||||
binding.ivBg.setImageResource(R.drawable.bg_circle_ffdc00_ffb600)
|
binding.ivCrown.setImageResource(R.drawable.img_rank_1)
|
||||||
binding.ivBg.visibility = View.VISIBLE
|
|
||||||
|
|
||||||
binding.ivCrown.setImageResource(R.drawable.ic_crown_1)
|
|
||||||
binding.ivCrown.visibility = View.VISIBLE
|
binding.ivCrown.visibility = View.VISIBLE
|
||||||
binding.root.setBackgroundResource(
|
binding.root.setBackgroundResource(
|
||||||
if (items.size == 1) {
|
if (items.size == 1) {
|
||||||
@@ -80,10 +77,7 @@ class LiveRoomHeartRankingAdapter :
|
|||||||
}
|
}
|
||||||
|
|
||||||
1 -> {
|
1 -> {
|
||||||
binding.ivBg.setImageResource(R.drawable.bg_circle_ffffff_9f9f9f)
|
binding.ivCrown.setImageResource(R.drawable.img_rank_2)
|
||||||
binding.ivBg.visibility = View.VISIBLE
|
|
||||||
|
|
||||||
binding.ivCrown.setImageResource(R.drawable.ic_crown_2)
|
|
||||||
binding.ivCrown.visibility = View.VISIBLE
|
binding.ivCrown.visibility = View.VISIBLE
|
||||||
|
|
||||||
if (items.size == 2) {
|
if (items.size == 2) {
|
||||||
@@ -110,10 +104,7 @@ class LiveRoomHeartRankingAdapter :
|
|||||||
}
|
}
|
||||||
|
|
||||||
2 -> {
|
2 -> {
|
||||||
binding.ivBg.setImageResource(R.drawable.bg_circle_e6a77a_c67e4a)
|
binding.ivCrown.setImageResource(R.drawable.img_rank_3)
|
||||||
binding.ivBg.visibility = View.VISIBLE
|
|
||||||
|
|
||||||
binding.ivCrown.setImageResource(R.drawable.ic_crown_3)
|
|
||||||
binding.ivCrown.visibility = View.VISIBLE
|
binding.ivCrown.visibility = View.VISIBLE
|
||||||
binding.root.setBackgroundResource(
|
binding.root.setBackgroundResource(
|
||||||
R.drawable.bg_bottom_round_corner_4_7_13181b
|
R.drawable.bg_bottom_round_corner_4_7_13181b
|
||||||
@@ -129,8 +120,6 @@ class LiveRoomHeartRankingAdapter :
|
|||||||
}
|
}
|
||||||
|
|
||||||
else -> {
|
else -> {
|
||||||
binding.ivBg.setImageResource(0)
|
|
||||||
binding.ivBg.visibility = View.GONE
|
|
||||||
binding.ivCrown.visibility = View.GONE
|
binding.ivCrown.visibility = View.GONE
|
||||||
binding.root.setBackgroundResource(0)
|
binding.root.setBackgroundResource(0)
|
||||||
binding.root.background = null
|
binding.root.background = null
|
||||||
|
|||||||
@@ -26,18 +26,12 @@
|
|||||||
|
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
android:id="@+id/rl_profile"
|
android:id="@+id/rl_profile"
|
||||||
android:layout_width="65dp"
|
android:layout_width="77dp"
|
||||||
android:layout_height="65dp"
|
android:layout_height="75dp"
|
||||||
android:layout_centerVertical="true"
|
android:layout_centerVertical="true"
|
||||||
android:layout_marginStart="13.3dp"
|
android:layout_marginStart="13.3dp"
|
||||||
android:layout_toEndOf="@+id/tv_rank">
|
android:layout_toEndOf="@+id/tv_rank">
|
||||||
|
|
||||||
<ImageView
|
|
||||||
android:id="@+id/iv_bg"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="match_parent"
|
|
||||||
android:contentDescription="@null" />
|
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/iv_profile"
|
android:id="@+id/iv_profile"
|
||||||
android:layout_width="60dp"
|
android:layout_width="60dp"
|
||||||
@@ -48,10 +42,10 @@
|
|||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/iv_crown"
|
android:id="@+id/iv_crown"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="match_parent"
|
||||||
android:layout_alignParentEnd="true"
|
android:layout_centerInParent="true"
|
||||||
android:layout_alignParentBottom="true"
|
android:layout_gravity="center"
|
||||||
android:contentDescription="@null" />
|
android:contentDescription="@null" />
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
|
|||||||
@@ -27,18 +27,12 @@
|
|||||||
|
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
android:id="@+id/rl_profile"
|
android:id="@+id/rl_profile"
|
||||||
android:layout_width="65dp"
|
android:layout_width="77dp"
|
||||||
android:layout_height="65dp"
|
android:layout_height="75dp"
|
||||||
android:layout_centerVertical="true"
|
android:layout_centerVertical="true"
|
||||||
android:layout_marginStart="13.3dp"
|
android:layout_marginStart="13.3dp"
|
||||||
android:layout_toEndOf="@+id/tv_rank">
|
android:layout_toEndOf="@+id/tv_rank">
|
||||||
|
|
||||||
<ImageView
|
|
||||||
android:id="@+id/iv_bg"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="match_parent"
|
|
||||||
android:contentDescription="@null" />
|
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/iv_profile"
|
android:id="@+id/iv_profile"
|
||||||
android:layout_width="60dp"
|
android:layout_width="60dp"
|
||||||
@@ -49,10 +43,10 @@
|
|||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/iv_crown"
|
android:id="@+id/iv_crown"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="match_parent"
|
||||||
android:layout_alignParentEnd="true"
|
android:layout_centerInParent="true"
|
||||||
android:layout_alignParentBottom="true"
|
android:layout_gravity="center"
|
||||||
android:contentDescription="@null" />
|
android:contentDescription="@null" />
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user