feat(live): 온에어 라이브 화면 리소스를 추가한다
This commit is contained in:
5
app/src/main/res/drawable/bg_home_on_air_live_badge.xml
Normal file
5
app/src/main/res/drawable/bg_home_on_air_live_badge.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<solid android:color="@color/black" />
|
||||
<corners android:radius="100dp" />
|
||||
</shape>
|
||||
5
app/src/main/res/drawable/bg_home_on_air_live_dot.xml
Normal file
5
app/src/main/res/drawable/bg_home_on_air_live_dot.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="oval">
|
||||
<solid android:color="@color/red_400" />
|
||||
</shape>
|
||||
35
app/src/main/res/layout/activity_home_on_air_live.xml
Normal file
35
app/src/main/res/layout/activity_home_on_air_live.xml
Normal file
@@ -0,0 +1,35 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/black"
|
||||
android:orientation="vertical">
|
||||
|
||||
<include
|
||||
android:id="@+id/toolbar"
|
||||
layout="@layout/detail_toolbar" />
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/rv_home_on_air_live"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1"
|
||||
android:clipToPadding="false"
|
||||
android:paddingHorizontal="@dimen/spacing_14"
|
||||
android:paddingTop="@dimen/spacing_14"
|
||||
android:paddingBottom="@dimen/spacing_20"
|
||||
tools:listitem="@layout/item_home_on_air_live" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_home_on_air_live_empty"
|
||||
style="@style/Typography.Body5"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:layout_marginTop="28dp"
|
||||
android:includeFontPadding="false"
|
||||
android:text="@string/screen_live_now_all_empty_message"
|
||||
android:textColor="@color/color_bbbbbb"
|
||||
android:visibility="gone" />
|
||||
</LinearLayout>
|
||||
125
app/src/main/res/layout/item_home_on_air_live.xml
Normal file
125
app/src/main/res/layout/item_home_on_air_live.xml
Normal file
@@ -0,0 +1,125 @@
|
||||
<?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="99dp"
|
||||
android:paddingVertical="@dimen/spacing_12">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_home_on_air_live_profile"
|
||||
android:layout_width="75dp"
|
||||
android:layout_height="75dp"
|
||||
android:contentDescription="@string/a11y_feed_profile_image"
|
||||
android:scaleType="centerCrop"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
tools:src="@drawable/ic_place_holder" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/layout_home_on_air_live_status"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/spacing_14"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal"
|
||||
app:layout_constraintEnd_toStartOf="@id/layout_home_on_air_live_price"
|
||||
app:layout_constraintStart_toEndOf="@id/iv_home_on_air_live_profile"
|
||||
app:layout_constraintTop_toTopOf="@id/iv_home_on_air_live_profile"
|
||||
tools:ignore="UseCompoundDrawables">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="18dp"
|
||||
android:background="@drawable/bg_home_on_air_live_badge"
|
||||
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_home_on_air_live_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" />
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_home_on_air_live_time"
|
||||
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_on_air_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_on_air_live_status"
|
||||
app:layout_constraintStart_toStartOf="@id/layout_home_on_air_live_status"
|
||||
app:layout_constraintTop_toBottomOf="@id/layout_home_on_air_live_status"
|
||||
tools:text="라이브 제목" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_home_on_air_live_creator"
|
||||
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_on_air_live_title"
|
||||
app:layout_constraintStart_toStartOf="@id/tv_home_on_air_live_title"
|
||||
app:layout_constraintTop_toBottomOf="@id/tv_home_on_air_live_title"
|
||||
tools:text="크리에이터" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/layout_home_on_air_live_price"
|
||||
android:layout_width="60dp"
|
||||
android:layout_height="99dp"
|
||||
android:layout_marginEnd="7dp"
|
||||
android:gravity="center_vertical|end"
|
||||
android:orientation="horizontal"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_home_on_air_live_cash"
|
||||
android:layout_width="18dp"
|
||||
android:layout_height="18dp"
|
||||
android:contentDescription="@null"
|
||||
android:src="@drawable/ic_bar_cash" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_home_on_air_live_price"
|
||||
style="@style/Typography.Body6"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="2dp"
|
||||
android:includeFontPadding="false"
|
||||
android:textColor="@color/white"
|
||||
tools:text="300" />
|
||||
</LinearLayout>
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
Reference in New Issue
Block a user