Open cjami opened 4 years ago
Given a simple constraint layout with padding:
<?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" android:paddingStart="10dp"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="THIS IS A TEST" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent"/> </androidx.constraintlayout.widget.ConstraintLayout>
In Left-To-Right, the layout behaves as expected:
However in Right-To-Left, the layout handles paddingStart differently and clips the view:
paddingStart
The same thing occurs with paddingEnd given a parent end constraint.
paddingEnd
It is expected that padding behaviour would be consistent between LTR and RTL versions of the layout.
Given a simple constraint layout with padding:
In Left-To-Right, the layout behaves as expected:
However in Right-To-Left, the layout handles
paddingStart
differently and clips the view:The same thing occurs with
paddingEnd
given a parent end constraint.It is expected that padding behaviour would be consistent between LTR and RTL versions of the layout.