Merge pull request #8573 from Stypox/better-thumbnails

Make thumbnails' `scaleType` `fitCenter`
This commit is contained in:
Stypox 2022-07-13 18:33:19 +02:00 committed by GitHub
commit d5599ebfa3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 14 additions and 17 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="fitStart"
android:src="@drawable/dummy_thumbnail_playlist"
tools:ignore="RtlHardcoded" />
@ -26,7 +26,7 @@
android:layout_width="@dimen/playlist_item_thumbnail_stream_count_width"
android:layout_height="match_parent"
android:layout_alignTop="@id/itemThumbnailView"
android:layout_alignRight="@id/itemThumbnailView"
android:layout_alignEnd="@id/itemThumbnailView"
android:layout_alignBottom="@id/itemThumbnailView"
android:background="@color/playlist_stream_count_background_color"
android:gravity="center"
@ -38,7 +38,6 @@
android:textStyle="bold"
app:drawableTint="@color/duration_text_color"
app:drawableTopCompat="@drawable/ic_playlist_play"
tools:ignore="RtlHardcoded"
tools:text="314159" />
<org.schabi.newpipe.views.NewPipeTextView

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="fitStart"
android:src="@drawable/dummy_thumbnail_playlist"
tools:ignore="RtlHardcoded" />
@ -27,7 +27,7 @@
android:layout_width="@dimen/playlist_item_thumbnail_stream_count_width"
android:layout_height="match_parent"
android:layout_alignTop="@id/itemThumbnailView"
android:layout_alignRight="@id/itemThumbnailView"
android:layout_alignEnd="@id/itemThumbnailView"
android:layout_alignBottom="@id/itemThumbnailView"
android:background="@color/playlist_stream_count_background_color"
android:gravity="center"
@ -39,7 +39,6 @@
android:textStyle="bold"
app:drawableTint="@color/duration_text_color"
app:drawableTopCompat="@drawable/ic_playlist_play"
tools:ignore="RtlHardcoded"
tools:text="314159" />
<org.schabi.newpipe.views.NewPipeTextView

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="fitStart"
android:src="@drawable/dummy_thumbnail_playlist"
tools:ignore="RtlHardcoded" />
@ -27,7 +27,7 @@
android:layout_width="45dp"
android:layout_height="match_parent"
android:layout_alignTop="@id/itemThumbnailView"
android:layout_alignRight="@id/itemThumbnailView"
android:layout_alignEnd="@id/itemThumbnailView"
android:layout_alignBottom="@id/itemThumbnailView"
android:background="@color/playlist_stream_count_background_color"
android:gravity="center"
@ -39,7 +39,6 @@
android:textStyle="bold"
app:drawableTint="@color/duration_text_color"
app:drawableTopCompat="@drawable/ic_playlist_play"
tools:ignore="RtlHardcoded"
tools:text="3141" />
<org.schabi.newpipe.views.NewPipeTextView

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"