feat(feed): 랭킹 피드 뷰를 추가한다

This commit is contained in:
2026-05-21 15:53:40 +09:00
parent a5728bcc4d
commit 4d0d330797
2 changed files with 139 additions and 0 deletions

View File

@@ -0,0 +1,58 @@
<?xml version="1.0" encoding="utf-8"?>
<kr.co.vividnext.sodalive.v2.widget.feed.FeedRankView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="374dp"
android:layout_height="wrap_content"
android:background="@drawable/bg_feed_card"
android:clipChildren="false"
android:clipToPadding="false"
android:gravity="center_vertical"
android:orientation="horizontal"
android:padding="@dimen/spacing_14">
<FrameLayout
android:id="@+id/fl_feed_rank_image_container"
android:layout_width="80dp"
android:layout_height="80dp"
android:clipChildren="false"
android:clipToPadding="false">
<ImageView
android:id="@+id/iv_feed_rank_image"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:contentDescription="@string/a11y_feed_rank_image"
android:scaleType="centerCrop"
tools:src="@drawable/ic_launcher_background" />
<TextView
android:id="@+id/tv_feed_rank_overlay"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="end|bottom"
android:layout_marginEnd="-6dp"
android:layout_marginBottom="-22dp"
android:fontFamily="@font/pattaya_regular"
android:includeFontPadding="false"
android:shadowColor="#7A000000"
android:shadowDx="0"
android:shadowDy="0"
android:shadowRadius="4"
android:textColor="#EEEEEE"
android:textSize="40sp"
tools:text="2" />
</FrameLayout>
<TextView
android:id="@+id/tv_feed_rank_message"
style="@style/Typography.Body2"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/spacing_14"
android:layout_weight="1"
android:ellipsize="end"
android:includeFontPadding="false"
android:maxLines="2"
android:textColor="@color/white"
tools:text="{{크리에이터 이름}}님이 5월 2주차 크리에이터 12위를 차지하였어요!" />
</kr.co.vividnext.sodalive.v2.widget.feed.FeedRankView>