2020-10-11 10:02:00 +02:00
<?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"
2020-10-11 23:16:47 +02:00
android:background="#f5f5f5"
2020-10-15 19:01:37 +02:00
tools:context=".ui.fragments.MediaFragment">
2020-10-11 10:02:00 +02:00
2020-10-12 09:54:32 +02:00
<androidx.core.widget.NestedScrollView
2020-10-11 10:02:00 +02:00
android:layout_width="match_parent"
2020-10-12 09:54:32 +02:00
android:layout_height="match_parent"
android:fillViewport="true">
2020-10-11 10:02:00 +02:00
2020-10-12 09:54:32 +02:00
<LinearLayout
android:layout_width="match_parent"
2020-10-11 23:16:47 +02:00
android:layout_height="wrap_content"
2020-10-13 15:56:07 +02:00
android:orientation="vertical">
2020-10-11 10:02:00 +02:00
2020-10-12 22:43:42 +02:00
<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"
2020-10-13 12:27:13 +02:00
android:adjustViewBounds="false"
2020-10-12 22:43:42 +02:00
android:maxHeight="231dp"
2020-10-13 12:27:13 +02:00
android:minHeight="220dp"
android:scaleType="centerCrop" />
2020-10-12 22:43:42 +02:00
2020-10-14 20:22:20 +02:00
<com.google.android.material.imageview.ShapeableImageView
2020-10-12 22:43:42 +02:00
android:id="@+id/image_poster"
android:layout_width="wrap_content"
2020-10-14 18:33:02 +02:00
android:layout_height="200dp"
2020-10-12 22:43:42 +02:00
android:layout_gravity="center"
2020-10-14 20:22:20 +02:00
app:shapeAppearance="@style/ShapeAppearance.Teapod.RoundedPoster"
app:srcCompat="@drawable/ic_launcher_background" />
2020-10-12 22:43:42 +02:00
</FrameLayout>
2020-10-11 10:02:00 +02:00
2020-10-13 15:56:07 +02:00
<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>
2020-10-13 00:14:03 +02:00
<com.google.android.material.button.MaterialButton
2020-10-12 09:54:32 +02:00
android:id="@+id/button_play"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="7dp"
2020-10-13 15:56:07 +02:00
android:layout_marginTop="6dp"
2020-10-12 09:54:32 +02:00
android:layout_marginEnd="7dp"
2020-10-13 00:14:03 +02:00
android:gravity="center"
android:text="@string/button_play"
2020-10-13 15:56:07 +02:00
android:textAllCaps="false"
2020-10-12 09:54:32 +02:00
android:textColor="@android:color/primary_text_dark"
2020-10-13 00:14:03 +02:00
android:textSize="16sp"
app:backgroundTint="#4A4141"
app:icon="@drawable/ic_baseline_play_arrow_24"
app:iconGravity="textStart" />
2020-10-12 09:54:32 +02:00
<TextView
android:id="@+id/text_title"
android:layout_width="wrap_content"
2020-10-13 15:56:07 +02:00
android:layout_height="wrap_content"
2020-10-12 09:54:32 +02:00
android:layout_gravity="center"
android:layout_marginStart="7dp"
android:layout_marginTop="12dp"
android:layout_marginEnd="7dp"
2020-10-12 22:43:42 +02:00
android:text="@string/text_title_ex"
2020-10-12 09:54:32 +02:00
android:textStyle="bold" />
<TextView
2020-10-12 22:43:42 +02:00
android:id="@+id/text_overview"
2020-10-12 09:54:32 +02:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
2020-10-13 15:56:07 +02:00
android:layout_marginStart="12dp"
android:layout_marginTop="7dp"
android:layout_marginEnd="12dp"
2020-10-12 22:43:42 +02:00
android:text="@string/text_overview_ex" />
2020-10-12 09:54:32 +02:00
2020-10-15 21:00:31 +02:00
<CheckBox
android:id="@+id/check_my_list"
android:layout_width="48dp"
android:layout_height="48dp"
android:layout_marginStart="31dp"
android:layout_marginTop="7dp"
android:layout_marginEnd="7dp"
android:layout_marginBottom="7dp"
android:button="@drawable/sl_favourite_24dp"
android:scaleX="2.0"
android:scaleY="2.0"
app:buttonTint="#4A4141" />
2020-10-12 09:54:32 +02:00
<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"
2020-10-15 21:00:31 +02:00
tools:layout_editor_absoluteY="298dp"
tools:listitem="@layout/item_episode" />
2020-10-12 09:54:32 +02:00
</LinearLayout>
</androidx.core.widget.NestedScrollView>
2020-10-11 23:16:47 +02:00
2020-10-11 10:02:00 +02:00
</FrameLayout>