Pick the fix
A form has labels of different lengths, and inputs should start right after the longest label in any language. What's the best tool?
Hint 1 of 1
Which helper moves with content size?
Choose an answer, then open Show answer below to check it.
Show answer
Answer: A A Barrier at the end of all labels, with inputs constrained to it
Correct. The barrier follows whichever label is widest.
Why not the others?
- B A Guideline at 30%. A fixed percentage breaks with long translations.
- C A nested LinearLayout per row with weights. Each row aligns on its own, not to the longest label.
- D Fixed dp margins. Breaks across languages and font sizes.