127 lines
5.2 KiB
XML
127 lines
5.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<FrameLayout 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="match_parent"
|
|
android:background="#f5f5f5"
|
|
tools:context=".ui.MediaFragment">
|
|
|
|
<androidx.core.widget.NestedScrollView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:fillViewport="true">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<FrameLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<ImageView
|
|
android:id="@+id/image_backdrop"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:adjustViewBounds="false"
|
|
android:maxHeight="231dp"
|
|
android:minHeight="220dp"
|
|
android:scaleType="centerCrop" />
|
|
|
|
<ImageView
|
|
android:id="@+id/image_poster"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:minHeight="200dp"
|
|
android:src="@drawable/ic_launcher_background" />
|
|
|
|
</FrameLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/linear_media_info"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="10dp"
|
|
android:gravity="center"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:id="@+id/text_year"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:padding="2dp"
|
|
android:text="@string/text_year_ex" />
|
|
|
|
<TextView
|
|
android:id="@+id/text_age"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="7dp"
|
|
android:background="@drawable/shape_rounden_corner"
|
|
android:paddingStart="3dp"
|
|
android:paddingTop="2dp"
|
|
android:paddingEnd="3dp"
|
|
android:paddingBottom="2dp"
|
|
android:text="@string/text_age_ex" />
|
|
|
|
<TextView
|
|
android:id="@+id/text_episodes_or_runtime"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="7dp"
|
|
android:padding="2dp"
|
|
android:text="@string/text_episodes_count" />
|
|
</LinearLayout>
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/button_play"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="7dp"
|
|
android:layout_marginTop="6dp"
|
|
android:layout_marginEnd="7dp"
|
|
android:gravity="center"
|
|
android:text="@string/button_play"
|
|
android:textAllCaps="false"
|
|
android:textColor="@android:color/primary_text_dark"
|
|
android:textSize="16sp"
|
|
app:backgroundTint="#4A4141"
|
|
app:icon="@drawable/ic_baseline_play_arrow_24"
|
|
app:iconGravity="textStart" />
|
|
|
|
<TextView
|
|
android:id="@+id/text_title"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:layout_marginStart="7dp"
|
|
android:layout_marginTop="12dp"
|
|
android:layout_marginEnd="7dp"
|
|
android:text="@string/text_title_ex"
|
|
android:textStyle="bold" />
|
|
|
|
<TextView
|
|
android:id="@+id/text_overview"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:layout_marginStart="12dp"
|
|
android:layout_marginTop="7dp"
|
|
android:layout_marginEnd="12dp"
|
|
android:text="@string/text_overview_ex" />
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/recycler_episodes"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="7dp"
|
|
android:layout_marginTop="17dp"
|
|
android:layout_marginEnd="7dp"
|
|
tools:layout_editor_absoluteY="298dp" />
|
|
</LinearLayout>
|
|
</androidx.core.widget.NestedScrollView>
|
|
|
|
</FrameLayout> |