mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-23 12:38:33 +00:00
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:
committed by
Alex Hart
parent
615fbf87c9
commit
c06056d847
BIN
app/src/main/res/drawable-ldrtl-hdpi/ic_arrow_right.webp
Normal file
BIN
app/src/main/res/drawable-ldrtl-hdpi/ic_arrow_right.webp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 168 B |
BIN
app/src/main/res/drawable-ldrtl-xhdpi/ic_arrow_right.webp
Normal file
BIN
app/src/main/res/drawable-ldrtl-xhdpi/ic_arrow_right.webp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 162 B |
BIN
app/src/main/res/drawable-ldrtl-xxhdpi/ic_arrow_right.webp
Normal file
BIN
app/src/main/res/drawable-ldrtl-xxhdpi/ic_arrow_right.webp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 190 B |
BIN
app/src/main/res/drawable-ldrtl-xxxhdpi/ic_arrow_right.webp
Normal file
BIN
app/src/main/res/drawable-ldrtl-xxxhdpi/ic_arrow_right.webp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 196 B |
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user