What is the difference between Android margin start/end and right/left?

AndroidAndroid Layout

Android Problem Overview


What is difference between Android margin start and right (or margin end and left)?

It is trivial question, but I cannot seem to learn from the documention what is difference between view start/end and left/right. It could be that I just don't understand something, but I cannot make any progress with this at all.

Android Solutions


Solution 1 - Android

For left-to-right flow, start=left, end=right.

For right-to-left flow, start=right, end=left.

The "start" and "end" concepts were added in API Level 17, as part of Android 4.2's support for RTL layouts.

Solution 2 - Android

Android supports RTL layouts from API 17+ i.e., Android 4.2 (Jelly Bean).and when we make our layout to support both RTL and LTR then we can not use layout_marginleft and layout_marginRight there we use layout_marginstart and layout_maginend .

pic

Solution 3 - Android

It's an helpful answer. I was thinking about it and reading documentation was unable to get the answer. So the margin left is margin start for English and similar languages

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionChameleonView Question on Stackoverflow
Solution 1 - AndroidCommonsWareView Answer on Stackoverflow
Solution 2 - AndroidAvnish NishadView Answer on Stackoverflow
Solution 3 - AndroidoyeraghibView Answer on Stackoverflow