Fix episode layout when using RTL language (#631)

* Fix episode layout when using RTL language
This commit is contained in:
CranberrySoup 2023-09-25 09:40:58 +00:00 committed by GitHub
parent d4fff7cee6
commit b8917ffa39
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 4 deletions

View file

@ -216,11 +216,9 @@ class ResultFragmentTv : Fragment() {
episodesShadow.fade(show) episodesShadow.fade(show)
episodeHolderTv.fade(show) episodeHolderTv.fade(show)
if (episodesShadow.isRtl()) { if (episodesShadow.isRtl()) {
episodesShadow.scaleX = -1.0f episodesShadowBackground.scaleX = -1f
episodesShadow.scaleY = -1.0f
} else { } else {
episodesShadow.scaleX = 1.0f episodesShadowBackground.scaleX = 1f
episodesShadow.scaleY = 1.0f
} }
} }
} }

View file

@ -572,6 +572,7 @@ https://developer.android.com/design/ui/tv/samples/jet-fit
app:layout_constraintTop_toTopOf="@+id/shadow_space_1" /> app:layout_constraintTop_toTopOf="@+id/shadow_space_1" />
<ImageView <ImageView
android:id="@+id/episodes_shadow_background"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_gravity="end" android:layout_gravity="end"