手机APP安卓项目实战一博学谷

Android相对布局中,如何使A控件靠父控件左对齐并且离父控件上边缘10dp,B控件靠父控件右边对齐并且离父控件右边缘10dp?

<RelativeLayout
    android:layout_width="match_parent"
    android:layout_height="match_parent">
    <View
        android:id="@+id/viewA"
        android:layout_width="100dp"
        android:layout_height="100dp"
        android:layout_marginTop="10dp"/>
    <View
        android:id="@+id/viewB"
        android:layout_width="100dp"
        android:layout_height="100dp"
        android:layout_alignParentEnd="true"
        android:layout_marginEnd="10dp"/>
</RelativeLayout>