This article describes the use of Relativelayout and Framelayout in Android. Specifically as follows:
Relativelayout is a layout arranged according to the relative position, which is opposite to the absolutelayout of this absolute coordinate layout.
The controls in the Relativelayout layout contain rich arrangement attributes:
Layout above: Select ID A, the control is above the A control, Layout below, Layout to left of. and the same usage. When using the Relativelayout layout, it is best to layout in the interface design, make changes to the layout of the control when the program is running, because the attributes within the Relativelayout layout are easily conflicting, for example, Layout below, Layout Above ID A, then there must be a conflict.
Framelayout, as the name implies, is related to frames, all the controls in the layout are placed in the upper-left corner of the layout, and one layer is covered.
Framelayout layout inside the control layout properties, which is the key to Layout_gravity, is responsible for controlling the location of the control.
As for the common situation of framelayout layout, readers can learn more in the following study.