RelativeLayout: java.lang.Object ↳android.view.View ↳android.view.ViewGroup ↳android.widget.RelativeLayout 原意: A Layout where the positions of the children can be described in re
如上图。 相对布局,假如最右边的设置gone后, 左边两个就会跑到最左边去。 在这两个里面加上 android:layout_alignWithParentIfMissing="true" 就好了~ If set to true, the parent will be used as the anchor when the anchor cannot be be foun