Files
sodalive-android/app/src/main/res/layout/live_booking_card.xml
klaus 39be49b481 feat: 마이페이지
- 신규 UI 적용
2025-07-25 16:52:34 +09:00

234 lines
8.7 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="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/live_booking_card_background"
android:padding="12dp">
<ImageView
android:id="@+id/iv_profile"
android:layout_width="96dp"
android:layout_height="96dp"
android:contentDescription="@null"
android:scaleType="centerCrop"
android:src="@drawable/ic_placeholder_profile"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:src="@tools:sample/avatars" />
<ImageView
android:id="@+id/iv_lock"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="4dp"
android:layout_marginTop="4dp"
android:background="@drawable/bg_circle_b3333333"
android:visibility="gone"
android:contentDescription="@null"
android:padding="4dp"
android:src="@drawable/ic_lock"
app:layout_constraintStart_toStartOf="@+id/iv_profile"
app:layout_constraintTop_toTopOf="@+id/iv_profile" />
<!-- Content Area -->
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginHorizontal="16dp"
android:layout_weight="1"
android:orientation="vertical"
app:layout_constraintBottom_toBottomOf="@+id/iv_profile"
app:layout_constraintEnd_toStartOf="@+id/ll_date"
app:layout_constraintStart_toEndOf="@+id/iv_profile"
app:layout_constraintTop_toTopOf="@+id/iv_profile">
<!-- Title -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:orientation="horizontal">
<TextView
android:id="@+id/tv_nickname"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="@font/pretendard_regular"
android:textColor="#FFFFFF"
android:textSize="18sp"
tools:text="우기라스" />
</LinearLayout>
<!-- Content -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:id="@+id/tv_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginVertical="8dp"
android:ellipsize="end"
android:fontFamily="@font/pretendard_regular"
android:maxLines="1"
android:textColor="#B0BEC5"
android:textSize="14sp"
tools:text="평범한 가족의 아슬아슬한 이중생활..." />
<!-- Time Info -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:orientation="horizontal">
<TextView
android:id="@+id/tv_day_of_week"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="@font/pretendard_regular"
android:textColor="#78909C"
android:textSize="14sp"
tools:text="월" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginHorizontal="4dp"
android:fontFamily="@font/pretendard_regular"
android:text="|"
android:textColor="#78909C"
android:textSize="14sp" />
<TextView
android:id="@+id/tv_time"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="@font/pretendard_regular"
android:textColor="#98A2F6"
android:textSize="14sp"
tools:text="오후 03:30" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
<!-- Right Area -->
<LinearLayout
android:id="@+id/ll_date"
android:layout_width="52dp"
android:layout_height="wrap_content"
android:orientation="vertical"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent">
<!-- Month -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/date_month_background"
android:gravity="center"
android:paddingVertical="4dp">
<TextView
android:id="@+id/tv_month"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="@font/pretendard_bold"
android:lineSpacingMultiplier="1.2"
android:textColor="#FFFFFF"
android:textSize="14sp"
android:textStyle="bold"
tools:text="6월" />
</LinearLayout>
<!-- Day -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/date_day_background"
android:gravity="center"
android:paddingVertical="4dp">
<TextView
android:id="@+id/tv_day"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="@font/pretendard_bold"
android:lineSpacingMultiplier="1.2"
android:textColor="#263238"
android:textSize="16sp"
tools:text="27" />
</LinearLayout>
</LinearLayout>
<!-- Payment Status -->
<LinearLayout
android:id="@+id/ll_can"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/payment_background"
android:gravity="center_vertical"
android:minWidth="52dp"
android:orientation="horizontal"
android:paddingHorizontal="4dp"
android:paddingVertical="2dp"
android:visibility="gone"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent">
<ImageView
android:layout_width="16dp"
android:layout_height="16dp"
android:layout_marginEnd="2dp"
android:contentDescription="@null"
android:src="@drawable/ic_can" />
<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>
<TextView
android:id="@+id/tv_complete_reservation"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/reservation_complete_background"
android:fontFamily="@font/pretendard_regular"
android:minWidth="52dp"
android:padding="4dp"
android:text="예약완료"
android:textColor="#FFF"
android:textSize="14sp"
android:visibility="gone"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent" />
<TextView
android:id="@+id/tv_free"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/payment_free_background"
android:fontFamily="@font/pretendard_regular"
android:gravity="center"
android:minWidth="52dp"
android:padding="4dp"
android:text="무료"
android:textColor="#263238"
android:textSize="14sp"
android:visibility="gone"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>