add playhead progress indicator to MediaFragment epsiodes

This commit is contained in:
2022-04-03 14:57:14 +02:00
parent 5b5a74a1de
commit b2196f11da
4 changed files with 30 additions and 11 deletions

View File

@ -10,21 +10,22 @@
android:paddingBottom="7dp">
<LinearLayout
android:id="@+id/linear_episode"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<FrameLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
android:layout_width="128dp"
android:layout_height="72dp">
<com.google.android.material.imageview.ShapeableImageView
android:id="@+id/image_episode"
android:layout_width="128dp"
android:layout_height="72dp"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:contentDescription="@string/component_poster_desc"
app:shapeAppearance="@style/ShapeAppearance.Teapod.RoundedPoster"
app:srcCompat="@color/imagePlacholder" />
app:srcCompat="@color/imagePlaceholder" />
<ImageView
android:id="@+id/image_episode_play"
@ -35,6 +36,15 @@
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>
<TextView

View File

@ -7,16 +7,16 @@
android:padding="7dp">
<FrameLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
android:layout_width="192dp"
android:layout_height="108dp">
<com.google.android.material.imageview.ShapeableImageView
android:id="@+id/image_episode"
android:layout_width="192dp"
android:layout_height="108dp"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:contentDescription="@string/component_poster_desc"
app:shapeAppearance="@style/ShapeAppearance.Teapod.RoundedPoster"
app:srcCompat="@color/imagePlacholder" />
app:srcCompat="@color/imagePlaceholder" />
<ImageView
android:id="@+id/image_episode_play"