Multiple choice technology platforms and products

By default, LinearLayout is _______.

  1. Left and top-aligned

  2. Only left aligned

  3. Only top aligned

  4. None of above

Reveal answer Fill a bubble to check yourself
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.