Make thumbnails' scaleType fitCenter

Otherwise e.g. shorts thumbnails would be cropped too much
This commit is contained in:
Stypox 2022-07-04 21:43:31 +02:00
parent 45d2492bcb
commit 47a2adca96
No known key found for this signature in database
GPG Key ID: 4BDF1B40A49FDD23
11 changed files with 11 additions and 11 deletions

View File

@ -17,7 +17,7 @@
android:layout_height="70dp"
android:background="@android:color/black"
android:fitsSystemWindows="true"
android:scaleType="centerCrop"
android:scaleType="fitCenter"
android:src="@drawable/channel_banner"
tools:ignore="ContentDescription" />

View File

@ -17,7 +17,7 @@
android:id="@+id/previewImage"
android:layout_width="0dp"
android:layout_height="@dimen/play_queue_thumbnail_width"
android:scaleType="centerCrop"
android:scaleType="fitCenter"
android:src="@drawable/dummy_thumbnail"
app:layout_constraintDimensionRatio="16:9"
app:layout_constraintStart_toStartOf="parent"

View File

@ -17,7 +17,7 @@
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_marginRight="@dimen/video_item_search_image_right_margin"
android:scaleType="centerCrop"
android:scaleType="fitCenter"
android:src="@drawable/dummy_thumbnail_playlist"
tools:ignore="RtlHardcoded" />

View File

@ -18,7 +18,7 @@
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginRight="@dimen/video_item_search_image_right_margin"
android:scaleType="centerCrop"
android:scaleType="fitCenter"
android:src="@drawable/dummy_thumbnail_playlist"
tools:ignore="RtlHardcoded" />

View File

@ -18,7 +18,7 @@
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginRight="@dimen/video_item_search_image_right_margin"
android:scaleType="centerCrop"
android:scaleType="fitCenter"
android:src="@drawable/dummy_thumbnail_playlist"
tools:ignore="RtlHardcoded" />

View File

@ -14,7 +14,7 @@
android:id="@+id/itemThumbnailView"
android:layout_width="@dimen/video_item_grid_thumbnail_image_width"
android:layout_height="@dimen/video_item_grid_thumbnail_image_height"
android:scaleType="centerCrop"
android:scaleType="fitCenter"
android:src="@drawable/dummy_thumbnail"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"

View File

@ -14,7 +14,7 @@
android:id="@+id/itemThumbnailView"
android:layout_width="@dimen/video_item_search_thumbnail_image_width"
android:layout_height="@dimen/video_item_search_thumbnail_image_height"
android:scaleType="centerCrop"
android:scaleType="fitCenter"
android:src="@drawable/dummy_thumbnail"
app:layout_constraintBottom_toTopOf="@+id/itemProgressView"
app:layout_constraintStart_toStartOf="parent"

View File

@ -17,7 +17,7 @@
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginRight="@dimen/video_item_search_image_right_margin"
android:scaleType="centerCrop"
android:scaleType="fitCenter"
android:src="@drawable/dummy_thumbnail"
tools:ignore="RtlHardcoded" />

View File

@ -17,7 +17,7 @@
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_marginRight="@dimen/video_item_search_image_right_margin"
android:scaleType="centerCrop"
android:scaleType="fitCenter"
android:src="@drawable/dummy_thumbnail"
tools:ignore="RtlHardcoded" />

View File

@ -18,7 +18,7 @@
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginRight="@dimen/video_item_search_image_right_margin"
android:scaleType="centerCrop"
android:scaleType="fitCenter"
android:src="@drawable/dummy_thumbnail"
tools:ignore="RtlHardcoded" />

View File

@ -17,7 +17,7 @@
android:layout_marginStart="@dimen/video_item_search_image_right_margin"
android:layout_marginTop="@dimen/video_item_search_image_right_margin"
android:layout_marginBottom="@dimen/video_item_search_image_right_margin"
android:scaleType="centerCrop"
android:scaleType="fitCenter"
android:src="@drawable/dummy_thumbnail"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"