Files
sodalive-android/app/src/main/res/layout/item_home_following_live.xml
T

100 lines
4.2 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout 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="263dp"
android:layout_height="100dp"
android:background="@drawable/bg_home_following_live_capsule"
android:paddingStart="12dp"
android:paddingEnd="22dp">
<ImageView
android:id="@+id/iv_home_following_live_creator_profile"
android:layout_width="75dp"
android:layout_height="75dp"
android:contentDescription="@null"
android:scaleType="centerCrop"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:src="@drawable/ic_placeholder_profile" />
<LinearLayout
android:id="@+id/layout_home_following_live_status"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/spacing_8"
android:gravity="center_vertical"
android:orientation="horizontal"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@id/iv_home_following_live_creator_profile"
app:layout_constraintTop_toTopOf="@id/iv_home_following_live_creator_profile"
tools:ignore="UseCompoundDrawables">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="18dp"
android:background="@drawable/bg_live_thumbnail_badge_capsule"
android:gravity="center"
android:orientation="horizontal"
android:paddingHorizontal="@dimen/spacing_4"
android:paddingVertical="2dp">
<View
android:layout_width="8dp"
android:layout_height="8dp"
android:background="@drawable/bg_live_thumbnail_dot" />
<TextView
style="@style/Typography.Caption3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/spacing_4"
android:includeFontPadding="false"
android:text="LIVE"
android:textColor="@color/white"
tools:ignore="HardcodedText" />
</LinearLayout>
<TextView
android:id="@+id/tv_home_following_live_started_at"
style="@style/Typography.Body6"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/spacing_8"
android:includeFontPadding="false"
android:textColor="@color/gray_500"
tools:text="00:00" />
</LinearLayout>
<TextView
android:id="@+id/tv_home_following_live_title"
style="@style/Typography.Heading4"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/spacing_4"
android:ellipsize="end"
android:includeFontPadding="false"
android:maxLines="1"
android:textColor="@color/white"
app:layout_constraintEnd_toEndOf="@id/layout_home_following_live_status"
app:layout_constraintStart_toStartOf="@id/layout_home_following_live_status"
app:layout_constraintTop_toBottomOf="@id/layout_home_following_live_status"
tools:text="라이브 제목" />
<TextView
android:id="@+id/tv_home_following_live_creator_nickname"
style="@style/Typography.Body6"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/spacing_4"
android:ellipsize="end"
android:includeFontPadding="false"
android:maxLines="1"
android:textColor="@color/gray_500"
app:layout_constraintEnd_toEndOf="@id/tv_home_following_live_title"
app:layout_constraintStart_toStartOf="@id/tv_home_following_live_title"
app:layout_constraintTop_toBottomOf="@id/tv_home_following_live_title"
tools:text="크리에이터이름" />
</androidx.constraintlayout.widget.ConstraintLayout>