什么是 android:layout_alignParentEnd,它与 android:layout_alignParentStart 有何不同?

What is android:layout_alignParentEnd and how it differs from android:layout_alignParentStart?

我对 android:layout_alignParentEnd 文档定义感到困惑,因为它说 here

If true, makes the end edge of this view match the end edge of the parent. Accommodates end margin.

"end edge of parent" 究竟是什么以及我们如何确定视图的起始边缘和视图的结束边缘之间的差异?

同样的事情也让我在 android:layout_alignEndandroid:layout_alignStart

中感到困惑

What exactly is the "end edge of parent"

本例中的父项是 RelativeLayout。对于大多数语言,end 位于右侧。对于 RTL 语言(例如,阿拉伯语、希伯来语),end 在左侧。

how we determine the difference between start edge of a view and end edge of a view?

对于大多数语言,start 在左侧,end 在右侧。对于 RTL 语言,end 在左侧,start 在右侧。请注意,RTL 支持假定您 运行 处于 API 级别 17+ 和 have android:supportsRtl set to true.