By default, LinearLayout is _______.
-
Left and top-aligned
-
Only left aligned
-
Only top aligned
-
None of above
A
Correct answer
Explanation
By default, Android's LinearLayout is horizontally oriented and aligns its children starting from the top-left corner (Gravity.TOP | Gravity.START or left-aligned in standard LTR layouts). Distractors incorrectly claim it is only left-aligned or only top-aligned, whereas both horizontal and vertical alignment rules apply.