Skip to content
Snippets Groups Projects
Commit 1f227d89 authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Improve video grid card display

Set overlay in a separate ImageView, to make the cover center-cropped to
not stretch it.
parent 90a57f5c
No related branches found
No related tags found
No related merge requests found
......@@ -64,14 +64,23 @@
android:id="@+id/ml_item_thumbnail"
android:layout_width="0dp"
android:layout_height="0dp"
android:background="@{cover}"
android:scaleType="fitXY"
android:src="@drawable/black_gradient"
android:scaleType="centerCrop"
android:src="@{cover}"
vlc:media="@{media}"
vlc:layout_constraintTop_toTopOf="parent"
vlc:layout_constraintBottom_toBottomOf="parent"
vlc:layout_constraintStart_toStartOf="parent"
vlc:layout_constraintEnd_toEndOf="parent"/>
<ImageView
android:id="@+id/ml_item_overlay"
android:layout_width="0dp"
android:layout_height="0dp"
android:scaleType="fitXY"
android:src="@drawable/black_gradient"
vlc:layout_constraintTop_toTopOf="@+id/ml_item_thumbnail"
vlc:layout_constraintBottom_toBottomOf="@+id/ml_item_thumbnail"
vlc:layout_constraintStart_toStartOf="@+id/ml_item_thumbnail"
vlc:layout_constraintEnd_toEndOf="@+id/ml_item_thumbnail"/>
<ImageView
android:id="@+id/ml_item_seen"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment