tnex_johan tnex_johan - 6 months ago 59
Android Question

Android : ConstraintLayout support RTL

I gone through many solutions but i didn't understand the how to make design support to RTL Using

in android.

Answer Source

Just replace the constraints from Left to Start & Right to End ,

app:layout_constraintLeft_toRightOf = layout_constraintStart_toEndOf
app:layout_constraintRight_toLeftOf = layout_constraintEnd_toStartOf
app:layout_constraintLeft_toLeftOf = layout_constraintStart_toStartOf
app:layout_constraintRight_toRightOf = layout_constraintEnd_toEndOf

I am sure it does works perfectly for you,

See my Paradigm item_list.xml

LTR Screenshot


RTL Screenshot


Note : You need to remove textAlignment property

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download