Difference between Android: layout_alignParentTop and android: layout_alignParentStart

The documentation says:

Android: layout_alignParentStart

If true, makes the start of this view match the parent's start edge.

and

Android: layout_alignParentTop

If true, then the top edge of this view corresponds to the top edge of the parent element.

So what is the difference between the start edge and the top edge?

I apologize if this question has already been answered, I just could not find it. Blame my bad Google skills.

+5
source share
2 answers

As far as I know, Layout attributes ending in "Start" are used to coordinate the beginning of the direction of the content, for example, with support for RTL texts, where the beginning of the View not the default value.

+2
source

Android v4.2 (Jelly Bean) has built-in support for Right-Left (RTL) languages. Here is the official blog entry

To support RTL, he recommended replacing the layout properties left / right with Start / End equivalents. However, the Top / Bottom attributes remained intact.

Please read the blog entry for details; there is no need to copy it here.

0
source

Source: https://habr.com/ru/post/1205213/


All Articles