Android中的android:layout_alignLeft是什么?

Raj*_*nce 7 android relativelayout

我无法理解android:layout_alignLeft属性.我是android开发的新手.

<RelativeLayout 
        android:id="@+id/r5"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_below="@id/r4"

        > <TextView
              android:id="@+id/tv3"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_centerHorizontal="true"
              android:layout_centerVertical="true"
              android:layout_marginTop="10dp"
               android:textSize="16sp"
              android:textColor="#663300"
              android:text="TextView"

               />

          <TextView
              android:id="@+id/tv5"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"            
              android:layout_marginTop="10dp"

              android:layout_alignLeft="@id/tv3"
               android:textSize="16sp"
              android:textColor="#663300"
              android:text="TextView"


               />
         <TextView
              android:id="@+id/tv6"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_toRightOf="@id/tv5"
              android:layout_marginTop="10dp"
               android:textSize="16sp"
              android:textColor="#663300"
              android:text="TextView"

               />

          </RelativeLayout>
Run Code Online (Sandbox Code Playgroud)

谁能解释清楚?android:layout_Leftof和android:layout_alignLeft有什么区别?

kco*_*ock 19

layout_alignLeft 使视图的左边缘与视图的左边缘匹配,该边缘的ID用作参数.

layout_toLeftOf 使您的视图放置在您使用其ID的视图的左侧(右边缘将与另一个视图的左边缘对齐).