feat(feed): 콘텐츠 피드 뷰를 추가한다

This commit is contained in:
2026-05-21 15:53:40 +09:00
parent 8e9ce634e3
commit 77eef9609a
2 changed files with 224 additions and 0 deletions

View File

@@ -0,0 +1,114 @@
<?xml version="1.0" encoding="utf-8"?>
<kr.co.vividnext.sodalive.v2.widget.feed.FeedContentView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
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"
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:contentDescription="@string/a11y_feed_content_image"
android:scaleType="centerCrop"
tools:src="@drawable/ic_launcher_background" />
</FrameLayout>
<LinearLayout
android:id="@+id/ll_feed_content_info"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_marginStart="@dimen/spacing_14"
android:orientation="vertical"
app:layout_constraintBottom_toBottomOf="@id/fl_feed_content_image_container"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@id/fl_feed_content_image_container"
app:layout_constraintTop_toTopOf="parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="20dp"
android:gravity="center_vertical"
android:orientation="horizontal">
<ImageView
android:id="@+id/iv_feed_content_profile"
android:layout_width="20dp"
android:layout_height="20dp"
android:contentDescription="@string/a11y_feed_profile_image"
android:scaleType="centerCrop"
tools:src="@drawable/ic_launcher_background" />
<TextView
android:id="@+id/tv_feed_content_creator"
style="@style/Typography.Caption3"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/spacing_4"
android:layout_weight="1"
android:ellipsize="end"
android:includeFontPadding="false"
android:maxLines="1"
android:textColor="@color/white"
tools:text="크리에이터이름" />
</LinearLayout>
<TextView
android:id="@+id/tv_feed_content_title"
style="@style/Typography.Heading4"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_marginTop="@dimen/spacing_6"
android:layout_weight="1"
android:ellipsize="end"
android:includeFontPadding="false"
android:maxLines="1"
android:textColor="@color/white"
tools:text="콘텐츠 이름" />
<LinearLayout
android:id="@+id/ll_feed_content_meta"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:orientation="horizontal">
<TextView
android:id="@+id/tv_feed_content_category"
style="@style/Typography.Body6"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/bg_feed_category_tag"
android:includeFontPadding="false"
android:paddingHorizontal="@dimen/spacing_4"
android:paddingVertical="2dp"
android:textColor="@color/gray_100"
tools:text="콘텐츠" />
<TextView
android:id="@+id/tv_feed_content_created_at"
style="@style/Typography.Body6"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/spacing_8"
android:layout_weight="1"
android:ellipsize="end"
android:gravity="end"
android:includeFontPadding="false"
android:maxLines="1"
android:textColor="@color/gray_500"
tools:text="2분 전" />
</LinearLayout>
</LinearLayout>
</kr.co.vividnext.sodalive.v2.widget.feed.FeedContentView>