Force LTR layout in this view because the "playback" button should not be mirrored in RTL.

In this specific case, the drawable (triangle_right) used in this view
is _not_ autoMirrored which is correct. But the `layout_marginStart`
attribute adds the margin to the wrong side of the view that breaks the
appearance.

c.f. https://material.io/design/usability/bidirectionality.html#mirroring-elements
This commit is contained in:
Fumiaki Yoshimatsu 2021-06-25 16:40:38 -04:00 committed by Alex Hart
parent 615fbf87c9
commit c06056d847
5 changed files with 1 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 168 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 162 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 190 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 196 B

View file

@ -34,6 +34,7 @@
android:layout_marginStart="2dp"
android:tint="@color/core_ultramarine"
android:scaleType="fitXY"
android:layoutDirection="ltr"
app:srcCompat="@drawable/triangle_right" />
</FrameLayout>