fix(content): 콘텐츠 랭킹 rank 간격을 보정한다
This commit is contained in:
@@ -123,6 +123,7 @@ open class ContentRankingGridCardView @JvmOverloads constructor(
|
||||
requireNotNull(rankText).apply {
|
||||
textSize = 54f
|
||||
layoutParams = LayoutParams((55 * scale).roundToInt(), (75 * scale).roundToInt())
|
||||
setPadding(0, 0, 0, (6 * scale).roundToInt())
|
||||
}
|
||||
requireNotNull(titleText).textSize = 22f
|
||||
placeDelta(left = 10, top = 70, scale = scale)
|
||||
@@ -136,6 +137,7 @@ open class ContentRankingGridCardView @JvmOverloads constructor(
|
||||
layoutParams = LayoutParams((42 * scale).roundToInt(), (56 * scale).roundToInt()).apply {
|
||||
leftMargin = (8 * scale).roundToInt()
|
||||
}
|
||||
setPadding(0, 0, 0, (5 * scale).roundToInt())
|
||||
}
|
||||
requireNotNull(titleText).textSize = 14f
|
||||
placeDelta(left = 10, top = 49, scale = scale)
|
||||
|
||||
@@ -122,6 +122,11 @@ class ContentRankingHorizontalCardView @JvmOverloads constructor(
|
||||
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()
|
||||
|
||||
@@ -120,6 +120,7 @@ class ContentRankingLargeCardView @JvmOverloads constructor(
|
||||
private fun positionViews(size: ContentRankingCardSize) {
|
||||
val scale = size.widthPx / FIGMA_WIDTH.toFloat()
|
||||
requireNotNull(rankText).layoutParams = LayoutParams((91 * scale).roundToInt(), (114 * scale).roundToInt())
|
||||
requireNotNull(rankText).setPadding(0, 0, 0, (10 * scale).roundToInt())
|
||||
contentImageView().layoutParams = LayoutParams((155 * scale).roundToInt(), (154 * scale).roundToInt()).apply {
|
||||
leftMargin = ((size.widthPx - (155 * scale)) / 2f).roundToInt()
|
||||
topMargin = (14 * scale).roundToInt()
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:fontFamily="@font/pattaya_regular"
|
||||
android:gravity="center"
|
||||
android:includeFontPadding="false"
|
||||
android:shadowColor="#7A000000"
|
||||
android:shadowRadius="4"
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:fontFamily="@font/pattaya_regular"
|
||||
android:gravity="center"
|
||||
android:includeFontPadding="false"
|
||||
android:shadowColor="#7A000000"
|
||||
android:shadowRadius="4"
|
||||
|
||||
@@ -29,6 +29,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:fontFamily="@font/pattaya_regular"
|
||||
android:gravity="center"
|
||||
android:includeFontPadding="false"
|
||||
android:shadowColor="#7A000000"
|
||||
android:shadowRadius="4"
|
||||
|
||||
Reference in New Issue
Block a user