在RelativeLayout下的组件
android:layout_alignWithParentIfMissing="true"
If set to true, the parent will be used as the anchor when the anchor cannot be be found for layout_toLeftOf, layout_toRightOf, etc. [boolean]
e.g.
<TextView
android:id="@+id/authreptext"
android:layout_width="match_parent"
android:layout_height="20dp"
android:layout_above="@+id/adbanner"
android:layout_alignWithParentIfMissing="true"
android:layout_centerHorizontal="true"
android:layout_marginBottom="10dp"
android:ellipsize="none"
android:gravity="center" />
当id为adbanner不存在(visibility="gone")的情况下,该组件会自动 alignParentBottom 或 alignParentTop (这里是 alignParentBottom )
先暂时认为是 layout_above的影响,若是layout_below 则会是 alignParentTop (未考证)