fix(feed): 콘텐츠 카드 레이아웃을 보완한다
This commit is contained in:
@@ -35,6 +35,8 @@ class FeedContentView @JvmOverloads constructor(
|
||||
titleText = findViewById(R.id.tv_feed_content_title)
|
||||
categoryText = findViewById(R.id.tv_feed_content_category)
|
||||
createdAtText = findViewById(R.id.tv_feed_content_created_at)
|
||||
clipToOutline = true
|
||||
outlineProvider = roundedOutlineProvider()
|
||||
contentImageView().clipToOutline = true
|
||||
contentImageView().outlineProvider = roundedOutlineProvider()
|
||||
profileImageView().clipToOutline = true
|
||||
@@ -105,6 +107,6 @@ class FeedContentView @JvmOverloads constructor(
|
||||
private fun Int.dpToPx(): Int = (this * resources.displayMetrics.density).roundToInt()
|
||||
|
||||
private companion object {
|
||||
const val CONTENT_IMAGE_WIDTH_DP = 163
|
||||
const val CONTENT_IMAGE_WIDTH_DP = 88
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,20 +5,19 @@
|
||||
android:layout_width="374dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/bg_feed_card"
|
||||
android:clipToOutline="true"
|
||||
android:padding="@dimen/spacing_14">
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/fl_feed_content_image_container"
|
||||
android:layout_width="163dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="88dp"
|
||||
android:layout_height="88dp"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_feed_content_image"
|
||||
android:layout_width="163dp"
|
||||
android:layout_height="163dp"
|
||||
android:layout_width="88dp"
|
||||
android:layout_height="88dp"
|
||||
android:contentDescription="@string/a11y_feed_content_image"
|
||||
android:scaleType="centerCrop"
|
||||
tools:src="@drawable/ic_launcher_background" />
|
||||
|
||||
Reference in New Issue
Block a user