fix(profile): 프로필 후원 랭킹 전체보기 왕관 UI 위치와 크기를 통일한다
This commit is contained in:
@@ -50,10 +50,7 @@ class UserProfileDonationAllAdapter(private val userId: Long) :
|
|||||||
|
|
||||||
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.rlDonationRankingRoot.setBackgroundResource(
|
binding.rlDonationRankingRoot.setBackgroundResource(
|
||||||
if (items.size == 1) {
|
if (items.size == 1) {
|
||||||
@@ -77,10 +74,7 @@ class UserProfileDonationAllAdapter(private val userId: Long) :
|
|||||||
}
|
}
|
||||||
|
|
||||||
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) {
|
||||||
@@ -107,10 +101,7 @@ class UserProfileDonationAllAdapter(private val userId: Long) :
|
|||||||
}
|
}
|
||||||
|
|
||||||
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.rlDonationRankingRoot.setBackgroundResource(
|
binding.rlDonationRankingRoot.setBackgroundResource(
|
||||||
R.drawable.bg_bottom_round_corner_4_7_13181b
|
R.drawable.bg_bottom_round_corner_4_7_13181b
|
||||||
@@ -126,8 +117,6 @@ class UserProfileDonationAllAdapter(private val userId: Long) :
|
|||||||
}
|
}
|
||||||
|
|
||||||
else -> {
|
else -> {
|
||||||
binding.ivBg.setImageResource(0)
|
|
||||||
binding.ivBg.visibility = View.GONE
|
|
||||||
binding.ivCrown.visibility = View.GONE
|
binding.ivCrown.visibility = View.GONE
|
||||||
binding.rlDonationRanking.setBackgroundResource(0)
|
binding.rlDonationRanking.setBackgroundResource(0)
|
||||||
binding.rlDonationRanking.background = null
|
binding.rlDonationRanking.background = null
|
||||||
|
|||||||
@@ -13,16 +13,10 @@
|
|||||||
|
|
||||||
<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">
|
||||||
|
|
||||||
<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"
|
||||||
@@ -33,10 +27,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