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

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

@@ -53,9 +53,9 @@ class UserProfileDonationAllAdapter(private val userId: Long) :
binding.ivCrown.visibility = View.VISIBLE
binding.rlDonationRankingRoot.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
}
)
@@ -81,11 +81,11 @@ class UserProfileDonationAllAdapter(private val userId: Long) :
if (items.size == 2) {
binding.rlDonationRankingRoot.setBackgroundResource(
R.drawable.bg_bottom_round_corner_4_7_2b2635
R.drawable.bg_bottom_round_corner_4_7_13181b
)
} else {
binding.rlDonationRankingRoot.setBackgroundColor(
ContextCompat.getColor(context, R.color.color_2b2635)
ContextCompat.getColor(context, R.color.color_13181b)
)
}
@@ -109,7 +109,7 @@ class UserProfileDonationAllAdapter(private val userId: Long) :
binding.ivCrown.setImageResource(R.drawable.ic_crown_3)
binding.ivCrown.visibility = View.VISIBLE
binding.rlDonationRankingRoot.setBackgroundResource(
R.drawable.bg_bottom_round_corner_4_7_2b2635
R.drawable.bg_bottom_round_corner_4_7_13181b
)
lp.setMargins(

View File

@@ -117,8 +117,10 @@ class UserProfileDonationAllViewActivity : BaseActivity<ActivityUserProfileLiveA
if (SharedPreferenceManager.userId == userId) {
binding.llTotal.visibility = View.VISIBLE
binding.llVisibleDonationRanking.visibility = View.VISIBLE
} else {
binding.llTotal.visibility = View.GONE
binding.llVisibleDonationRanking.visibility = View.GONE
}
}

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(

View File

@@ -16,5 +16,6 @@ data class ProfileUpdateRequest(
@SerializedName("instagramUrl") val instagramUrl: String? = null,
@SerializedName("websiteUrl") val websiteUrl: String? = null,
@SerializedName("blogUrl") val blogUrl: String? = null,
@SerializedName("isVisibleDonationRank") val isVisibleDonationRank: Boolean? = null,
@SerializedName("container") val container: String = "aos"
)