feat: 메인 라이브 - 지금 라이브 중

- bg => #263238로 변경
- 가로 => 168 -> 144
- 세로 => 238 -> 204
This commit is contained in:
2025-07-19 01:26:21 +09:00
parent 5f6d26c83e
commit f1164bbd30
2 changed files with 114 additions and 106 deletions

View File

@@ -14,7 +14,7 @@ import kr.co.vividnext.sodalive.extensions.moneyFormat
import kr.co.vividnext.sodalive.live.GetRoomListResponse import kr.co.vividnext.sodalive.live.GetRoomListResponse
class LiveNowAdapter( class LiveNowAdapter(
private val onClick: (GetRoomListResponse) -> Unit private val onClick: (GetRoomListResponse) -> Unit,
) : RecyclerView.Adapter<LiveNowAdapter.ViewHolder>() { ) : RecyclerView.Adapter<LiveNowAdapter.ViewHolder>() {
var items = mutableListOf<GetRoomListResponse>() var items = mutableListOf<GetRoomListResponse>()

View File

@@ -1,119 +1,127 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" <androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="168dp" android:layout_width="144dp"
android:layout_height="238dp" android:layout_height="204dp"
android:background="@drawable/bg_home_creator" app:cardBackgroundColor="#263238"
android:orientation="vertical" app:cardCornerRadius="16dp">
android:padding="16dp">
<!-- 프로필 이미지 컨테이너 --> <androidx.constraintlayout.widget.ConstraintLayout
<FrameLayout android:layout_width="match_parent"
android:id="@+id/fl_profile" android:layout_height="match_parent"
android:layout_width="76dp" android:padding="12dp">
android:layout_height="76dp"
android:background="@drawable/circle_background"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<!-- 프로필 이미지 --> <!-- 프로필 이미지 컨테이너 -->
<ImageView <FrameLayout
android:id="@+id/iv_profile" android:id="@+id/fl_profile"
android:layout_width="62dp" android:layout_width="84dp"
android:layout_height="62dp" android:layout_height="84dp"
android:layout_gravity="center" android:background="@drawable/circle_background"
android:contentDescription="@null" app:layout_constraintEnd_toEndOf="parent"
android:scaleType="centerCrop" /> app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<!-- LIVE 배--> <!-- 프로필 이미-->
<ImageView <ImageView
android:layout_width="50dp" android:id="@+id/iv_profile"
android:layout_height="18dp" android:layout_width="72dp"
android:layout_gravity="bottom|center_horizontal" android:layout_height="72dp"
android:contentDescription="@null" android:layout_gravity="center"
android:src="@drawable/img_live" /> android:contentDescription="@null"
</FrameLayout> android:scaleType="centerCrop" />
<TextView <!-- LIVE 배지 -->
android:id="@+id/tv_nickname" <ImageView
android:layout_width="0dp" android:layout_width="50dp"
android:layout_height="wrap_content" android:layout_height="18dp"
android:layout_marginTop="12dp" android:layout_gravity="bottom|center_horizontal"
android:fontFamily="@font/pretendard_regular" android:contentDescription="@null"
android:gravity="center" android:src="@drawable/img_live" />
android:textColor="@color/white" </FrameLayout>
android:textSize="18sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/fl_profile"
tools:text="도화" />
<TextView
android:id="@+id/tv_title"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_marginTop="8dp"
android:ellipsize="end"
android:fontFamily="@font/pretendard_regular"
android:gravity="center"
android:maxLines="2"
android:textColor="#B0BEC5"
android:textSize="14sp"
app:layout_constraintBottom_toTopOf="@+id/fl_can"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/tv_nickname"
tools:text="제목제목제목제목제목제목" />
<FrameLayout
android:id="@+id/fl_can"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:gravity="center"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent">
<TextView
android:id="@+id/tv_free"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/bg_round_corner_999_white"
android:fontFamily="@font/pretendard_regular"
android:gravity="center"
android:paddingVertical="8dp"
android:text="무료"
android:textColor="#263238"
android:textSize="14sp"
android:visibility="gone" />
<LinearLayout <LinearLayout
android:id="@+id/ll_can" android:layout_width="0dp"
android:layout_width="match_parent" android:layout_height="0dp"
android:layout_height="wrap_content" android:layout_marginVertical="8dp"
android:background="@drawable/bg_round_corner_999_3b5ff1" android:orientation="vertical"
android:gravity="center" app:layout_constraintBottom_toTopOf="@+id/fl_can"
android:orientation="horizontal" app:layout_constraintEnd_toEndOf="parent"
android:paddingVertical="8dp" app:layout_constraintStart_toStartOf="parent"
android:visibility="gone"> app:layout_constraintTop_toBottomOf="@+id/fl_profile">
<ImageView
android:layout_width="16dp"
android:layout_height="16dp"
android:layout_marginEnd="2dp"
android:contentDescription="@null"
android:src="@drawable/ic_can_circle" />
<TextView <TextView
android:id="@+id/tv_can" android:id="@+id/tv_nickname"
android:layout_width="wrap_content" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:fontFamily="@font/pretendard_regular" android:fontFamily="@font/pretendard_regular"
android:textColor="#FFFFFF" android:gravity="center"
android:textSize="14sp" android:textColor="@color/white"
tools:text="300" /> android:textSize="16sp"
tools:text="도화" />
<TextView
android:id="@+id/tv_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:ellipsize="end"
android:fontFamily="@font/pretendard_regular"
android:gravity="center"
android:maxLines="1"
android:textColor="#B0BEC5"
android:textSize="12sp"
tools:text="제목제목제목제목제목제목" />
</LinearLayout> </LinearLayout>
</FrameLayout>
</androidx.constraintlayout.widget.ConstraintLayout> <FrameLayout
android:id="@+id/fl_can"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:gravity="center"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent">
<TextView
android:id="@+id/tv_free"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/bg_round_corner_999_white"
android:fontFamily="@font/pretendard_regular"
android:gravity="center"
android:paddingVertical="4dp"
android:text="무료"
android:textColor="#263238"
android:textSize="14sp"
android:visibility="gone" />
<LinearLayout
android:id="@+id/ll_can"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/bg_round_corner_999_3b5ff1"
android:gravity="center"
android:orientation="horizontal"
android:paddingVertical="4dp"
android:visibility="gone">
<ImageView
android:layout_width="16dp"
android:layout_height="16dp"
android:layout_marginEnd="2dp"
android:contentDescription="@null"
android:src="@drawable/ic_can_circle" />
<TextView
android:id="@+id/tv_can"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="@font/pretendard_regular"
android:textColor="#FFFFFF"
android:textSize="14sp"
tools:text="300" />
</LinearLayout>
</FrameLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.cardview.widget.CardView>