What is android:layout_marginStart

20,677

Solution 1

start and end are the same as left and right for left-to-right (LTR) languages. For right-to-left (RTL) languages (Arabic, Hebrew, etc.), start and end reverse and become equivalent to right and left, respectively.

This Android Developers Blog post gets into a bit more detail.

Solution 2

Some APIs were introduced to support languages that use a right to left reading direction e.g Arabic and Hebrew.

One of which is android:layout_marginStart

See the link for more info : http://developer.android.com/about/versions/android-4.2.html#RTL

Share:
20,677
null
Author by

null

Student

Updated on July 30, 2020

Comments

  • null
    null almost 4 years

    I would like to add some space between the left display border and an ImageView. Android SDK made me aware of "android:layout_marginStart".

    Consider adding android:layout_marginStart="10dp" to better support right-to-left layouts

    Why should I use android:layout_marginStart="10dp" instead of android:layout_marginLeft="10dp"? I have never done so and never encountered any problems with so-called "right-to-left layouts".