Fix episode layout when using RTL language

This commit is contained in:
CranberrySoup 2023-09-25 11:18:27 +02:00
parent 79a77a09e4
commit 6355c0dc4d
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"