What is the difference between linear layout and relative layout?

Answer: A. linear layout - arranges element in either vertical or horizontal fashion. Relative layout - arranges elements in relative to each other.

Description: 
linear layout - arranges child element in either vertical or horizontal fashion.
Relative layout - arranges child elements in relative to each other.
Important properties of Relative Layout:
1.    android:below
2.    android:above
3.    android:toRightof
4.    android:toLeftof

No comments:

Post a Comment