[android] Improve layouts in RTL mode with LTR texts

Signed-off-by: Jean-Baptiste Charron <jeanbaptiste.charron@outlook.fr>
This commit is contained in:
Jean-Baptiste
2025-07-25 15:19:52 +02:00
committed by Harry Bond
parent 4c6207a8ce
commit 0e7d8a65cc
5 changed files with 17 additions and 6 deletions

View File

@@ -43,6 +43,7 @@
android:layout_height="wrap_content"
android:textAppearance="@style/MwmTextAppearance.Body4"
android:maxLines="1"
android:textAlignment="viewStart"
tools:text="Крымск"
tools:background="#60FF00FF"/>
@@ -50,6 +51,7 @@
android:id="@+id/name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textAlignment="viewStart"
android:textAppearance="@style/MwmTextAppearance.Body1"
tools:text="Донецкая область"
tools:background="#40FF0000"/>
@@ -58,6 +60,7 @@
android:id="@+id/subtitle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textAlignment="viewStart"
android:textAppearance="@style/MwmTextAppearance.Body4"
tools:text="Украина"
tools:background="#60FFFF00"/>

View File

@@ -33,6 +33,7 @@
android:layout_height="wrap_content"
android:hint="@string/name"
android:padding="@dimen/margin_half_double_plus"
android:textAlignment="viewStart"
android:inputType="textCapSentences"
android:singleLine="true" />
</com.google.android.material.textfield.TextInputLayout>
@@ -64,6 +65,7 @@
android:paddingTop="@dimen/margin_quarter_plus"
android:paddingBottom="@dimen/margin_half_plus"
android:padding="@dimen/margin_half_double_plus"
android:textAlignment="viewStart"
android:textAppearance="@style/MwmTextAppearance.Body1"
app:drawableEndCompat="@drawable/ic_arrow_down" />
<View
@@ -100,6 +102,7 @@
android:layout_height="wrap_content"
android:padding="@dimen/margin_half_double_plus"
android:hint="@string/placepage_personal_notes_hint"
android:inputType="textMultiLine" />
android:inputType="textMultiLine"
android:textAlignment="viewStart" />
</com.google.android.material.textfield.TextInputLayout>
</RelativeLayout>

View File

@@ -10,14 +10,16 @@
android:id="@+id/checkbox"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_alignParentTop="true"
android:layout_alignBottom="@id/bottom_line_container"
android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
android:layout_centerVertical="true"
android:layout_margin="@dimen/margin_half"
android:padding="@dimen/margin_half"
android:layout_marginStart="8dp"
android:background="@null"
android:button="@drawable/visibility_selector"
android:buttonTint="?accentColorSelector" />
android:buttonTint="?accentColorSelector"
android:padding="@dimen/margin_half" />
<com.google.android.material.textview.MaterialTextView
android:id="@+id/name"
android:layout_width="wrap_content"
@@ -27,6 +29,7 @@
android:layout_toEndOf="@id/checkbox"
android:ellipsize="middle"
android:singleLine="true"
android:textAlignment="viewStart"
android:textAppearance="?fontBody1"
tools:text="Bookmark name looooooooooooooooooongasdasdasd" />
<LinearLayout

View File

@@ -29,6 +29,7 @@
style="@style/MwmWidget.Editor.FieldLayout.EditText"
tools:hint="Hint"
android:padding="@dimen/margin_half_double_plus"
android:textAlignment="viewStart"
tools:text="Input" />
</com.google.android.material.textfield.TextInputLayout>
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@@ -21,7 +21,8 @@
android:hint="@string/editor_edit_place_name_hint"
android:inputType="textCapSentences"
android:padding="@dimen/margin_base"
android:singleLine="true" />
android:singleLine="true"
android:textAlignment="viewStart" />
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.imageview.ShapeableImageView
android:id="@+id/delete"