RelativeLayout. As the name implies in this viewing group, the view is positioned relative to each other. Most of the used relativelayout properties are used:
android:layout_toLeftOf="@id/some_view1" android:layout_toRightOf="@id/some_view2" android:layout_above="@id/some_view3" android:layout_below="@id/some_view4" android:layout_toendof="@id/some_view5" android:layout_tostartof="@id/some_view6"
The view is placed relative to each other. This is really useful when developing a complex.
FrameLayout - it behaves because the representation of one object does not fit relative to each, but according to FrameLayout. FrameLayout takes the size of the largest child view.
android:gravity="center_horizontal|center_vertical|bottom"
The use of the upstream position of the child views has been changed.
source share