mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
Fix episode layout when using RTL language (#631)
* Fix episode layout when using RTL language
This commit is contained in:
parent
d4fff7cee6
commit
b8917ffa39
2 changed files with 3 additions and 4 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue