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)
episodeHolderTv.fade(show)
if (episodesShadow.isRtl()) {
episodesShadow.scaleX = -1.0f
episodesShadow.scaleY = -1.0f
episodesShadowBackground.scaleX = -1f
} else {
episodesShadow.scaleX = 1.0f
episodesShadow.scaleY = 1.0f
episodesShadowBackground.scaleX = 1f
}
}
}

View file

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