Two of the more popular and useful
layouts, or as their class derivation is known as view groups, are the relative layout and the linear
layout.
The
relative layout allows to arrange its children in a relative fashion according
to other sibling children. For instance you can define view a to be below view
b or view c to be to the right of view a. You can also align views to their
siblings for instance declare that view d should align its left side with the
left side of view b. In the image to the right we have one large view at the
with two views below, one aligned to the left of the top view and one aligned
to the right of the top view.


0 Komentar untuk "Android Tutorial For Beginer - Relative and Linear Layouts"