2020-10-14 18:33:02 +02:00
<?xml version="1.0" encoding="utf-8"?>
2022-12-04 13:51:29 +01:00
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android= "http://schemas.android.com/apk/res/android"
2020-10-14 18:33:02 +02:00
xmlns:app="http://schemas.android.com/apk/res-auto"
2020-11-28 15:09:39 +01:00
xmlns:tools="http://schemas.android.com/tools"
2022-12-04 13:51:29 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content">
2020-10-14 18:33:02 +02:00
2022-12-04 13:51:29 +01:00
<com.google.android.material.card.MaterialCardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:backgroundTint="?themeSecondary"
app:cardCornerRadius="7dp"
app:cardElevation="4dp"
2022-12-22 18:08:32 +01:00
app:cardUseCompatPadding="true"
2022-12-04 13:51:29 +01:00
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
2022-12-22 18:08:32 +01:00
app:layout_constraintTop_toTopOf="parent">
2020-10-14 18:33:02 +02:00
2022-12-04 13:51:29 +01:00
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
2022-04-10 20:15:13 +02:00
2022-12-04 13:51:29 +01:00
<FrameLayout
android:id="@+id/frame_image_progress"
android:layout_width="0dp"
android:layout_height="0dp"
app:layout_constraintBottom_toTopOf="@+id/text_title"
app:layout_constraintDimensionRatio="H,16:9"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
2022-04-10 20:15:13 +02:00
2022-12-04 13:51:29 +01:00
<ImageView
android:id="@+id/image_poster"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:contentDescription="@string/media_poster_desc"
android:scaleType="fitCenter"
tools:srcCompat="@drawable/placeholder_image" />
<ImageView
android:id="@+id/image_episode_play"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:background="@drawable/bg_circle__black_transparent_24dp"
android:contentDescription="@string/button_play"
app:srcCompat="@drawable/ic_baseline_play_arrow_24"
app:tint="#FFFFFF" />
<com.google.android.material.progressindicator.LinearProgressIndicator
android:id="@+id/progress_playhead"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:max="100"
app:trackColor="#00FFFFFF"
app:trackThickness="2dp" />
</FrameLayout>
2022-04-10 20:15:13 +02:00
2022-12-04 13:51:29 +01:00
<TextView
android:id="@+id/text_title"
android:layout_width="0dp"
2022-04-10 20:15:13 +02:00
android:layout_height="wrap_content"
2022-12-04 13:51:29 +01:00
android:gravity="center"
android:lines="2"
android:maxLines="2"
android:padding="3dp"
android:text="@string/text_title_ex"
android:textAlignment="center"
android:textSize="15sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/frame_image_progress" />
</androidx.constraintlayout.widget.ConstraintLayout>
2020-10-14 18:33:02 +02:00
2022-12-04 13:51:29 +01:00
</com.google.android.material.card.MaterialCardView>
2020-10-15 21:00:31 +02:00
2022-12-04 13:51:29 +01:00
</androidx.constraintlayout.widget.ConstraintLayout>