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)
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"