feat: 메인 라이브 - 지금 라이브 중
- bg => #263238로 변경 - 가로 => 168 -> 144 - 세로 => 238 -> 204
This commit is contained in:
@@ -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>()
|
||||||
|
|||||||
@@ -1,18 +1,22 @@
|
|||||||
<?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
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:padding="12dp">
|
||||||
|
|
||||||
<!-- 프로필 이미지 컨테이너 -->
|
<!-- 프로필 이미지 컨테이너 -->
|
||||||
<FrameLayout
|
<FrameLayout
|
||||||
android:id="@+id/fl_profile"
|
android:id="@+id/fl_profile"
|
||||||
android:layout_width="76dp"
|
android:layout_width="84dp"
|
||||||
android:layout_height="76dp"
|
android:layout_height="84dp"
|
||||||
android:background="@drawable/circle_background"
|
android:background="@drawable/circle_background"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
@@ -21,8 +25,8 @@
|
|||||||
<!-- 프로필 이미지 -->
|
<!-- 프로필 이미지 -->
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/iv_profile"
|
android:id="@+id/iv_profile"
|
||||||
android:layout_width="62dp"
|
android:layout_width="72dp"
|
||||||
android:layout_height="62dp"
|
android:layout_height="72dp"
|
||||||
android:layout_gravity="center"
|
android:layout_gravity="center"
|
||||||
android:contentDescription="@null"
|
android:contentDescription="@null"
|
||||||
android:scaleType="centerCrop" />
|
android:scaleType="centerCrop" />
|
||||||
@@ -36,36 +40,39 @@
|
|||||||
android:src="@drawable/img_live" />
|
android:src="@drawable/img_live" />
|
||||||
</FrameLayout>
|
</FrameLayout>
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="0dp"
|
||||||
|
android:layout_marginVertical="8dp"
|
||||||
|
android:orientation="vertical"
|
||||||
|
app:layout_constraintBottom_toTopOf="@+id/fl_can"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/fl_profile">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/tv_nickname"
|
android:id="@+id/tv_nickname"
|
||||||
android:layout_width="0dp"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="12dp"
|
|
||||||
android:fontFamily="@font/pretendard_regular"
|
android:fontFamily="@font/pretendard_regular"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:textColor="@color/white"
|
android:textColor="@color/white"
|
||||||
android:textSize="18sp"
|
android:textSize="16sp"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
|
||||||
app:layout_constraintTop_toBottomOf="@+id/fl_profile"
|
|
||||||
tools:text="도화" />
|
tools:text="도화" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/tv_title"
|
android:id="@+id/tv_title"
|
||||||
android:layout_width="0dp"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="0dp"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="8dp"
|
android:layout_marginTop="4dp"
|
||||||
android:ellipsize="end"
|
android:ellipsize="end"
|
||||||
android:fontFamily="@font/pretendard_regular"
|
android:fontFamily="@font/pretendard_regular"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:maxLines="2"
|
android:maxLines="1"
|
||||||
android:textColor="#B0BEC5"
|
android:textColor="#B0BEC5"
|
||||||
android:textSize="14sp"
|
android:textSize="12sp"
|
||||||
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="제목제목제목제목제목제목" />
|
tools:text="제목제목제목제목제목제목" />
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
<FrameLayout
|
<FrameLayout
|
||||||
android:id="@+id/fl_can"
|
android:id="@+id/fl_can"
|
||||||
@@ -83,7 +90,7 @@
|
|||||||
android:background="@drawable/bg_round_corner_999_white"
|
android:background="@drawable/bg_round_corner_999_white"
|
||||||
android:fontFamily="@font/pretendard_regular"
|
android:fontFamily="@font/pretendard_regular"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:paddingVertical="8dp"
|
android:paddingVertical="4dp"
|
||||||
android:text="무료"
|
android:text="무료"
|
||||||
android:textColor="#263238"
|
android:textColor="#263238"
|
||||||
android:textSize="14sp"
|
android:textSize="14sp"
|
||||||
@@ -96,7 +103,7 @@
|
|||||||
android:background="@drawable/bg_round_corner_999_3b5ff1"
|
android:background="@drawable/bg_round_corner_999_3b5ff1"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:orientation="horizontal"
|
android:orientation="horizontal"
|
||||||
android:paddingVertical="8dp"
|
android:paddingVertical="4dp"
|
||||||
android:visibility="gone">
|
android:visibility="gone">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
@@ -116,4 +123,5 @@
|
|||||||
tools:text="300" />
|
tools:text="300" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
</FrameLayout>
|
</FrameLayout>
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
</androidx.cardview.widget.CardView>
|
||||||
|
|||||||
Reference in New Issue
Block a user