Sourabh
Sourabh

Reputation: 8502

Difference between android:layout_alignParentTop and android:layout_alignParentStart

The documentation says:

android:layout_alignParentStart

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

and

android:layout_alignParentTop

If true, makes the top edge of this view match the top edge of the parent.

So what's the difference between start edge and top edge?

I'm sorry if this question is already answered, I just couldn't find it. Blame my poor Googling skills.

Upvotes: 6

Views: 6073

Answers (2)

Hardzsi
Hardzsi

Reputation: 41

Native support of Right-to-Left (RTL) languages was introduced in Android v4.2 (Jelly Bean). Here is the official blog entry on this

To support RTL, it's advised to replace Left/Right layout properties to Start/End equivalents. Top/Bottom attributes, however, remained intact.

Please, read the blog entry for the details, there's no need to copy it here.

Upvotes: 0

Helmi
Helmi

Reputation: 556

As far as I know Layout attributes ending with "Start" are used to match the start of content direction like supporting RTL texts where the start of the View is not the default.

Upvotes: 2

Related Questions