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

后端 未结 2 899
小蘑菇
小蘑菇 2020-11-28 03:54

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 d

相关标签:
2条回答
  • 2020-11-28 04:19

    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.

    0 讨论(0)
  • 2020-11-28 04:25

    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 .

    0 讨论(0)
提交回复
热议问题