fix(content): 콘텐츠 랭킹 순위 표시를 보완한다
This commit is contained in:
@@ -116,17 +116,12 @@ class ContentRankingHorizontalCardView @JvmOverloads constructor(
|
||||
private fun positionViews(size: ContentRankingCardSize) {
|
||||
val scale = size.widthPx / 374f
|
||||
requireNotNull(rankGroup).layoutParams = LayoutParams(
|
||||
(49 * scale).roundToInt(),
|
||||
ViewGroup.LayoutParams.WRAP_CONTENT,
|
||||
ViewGroup.LayoutParams.WRAP_CONTENT
|
||||
).apply {
|
||||
leftMargin = (14 * scale).roundToInt()
|
||||
topMargin = (14 * scale).roundToInt()
|
||||
}
|
||||
requireNotNull(rankText).layoutParams = android.widget.LinearLayout.LayoutParams(
|
||||
(48 * scale).roundToInt(),
|
||||
(52 * scale).roundToInt()
|
||||
)
|
||||
requireNotNull(rankText).setPadding(0, 0, 0, (4 * scale).roundToInt())
|
||||
requireNotNull(rankText).applyContentRankingRankGradient()
|
||||
imageView().layoutParams = LayoutParams((80 * scale).roundToInt(), (80 * scale).roundToInt()).apply {
|
||||
leftMargin = (77 * scale).roundToInt()
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_content_ranking_rank_group"
|
||||
android:layout_width="49dp"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical">
|
||||
|
||||
Reference in New Issue
Block a user