The other common layout container is the RelativeLayout. Relative layouts are
more flexible than linear layouts, but they are also more complex.
As its name implies, the relative layout arranges child views based on their position relative
to the other views and to the relative layout itself. For example, to place a text
view just to the left of a button, you would create the text view with the attribute
toLeftOf=”@id/my_button”.
This flexibility allows you to create very complex UIs within this one container.