In ConstraintLayout every view needs at least:

  1. A weight
  2. Four margins
  3. One horizontal and one vertical constraint
  4. An ID only
Answer

C) One horizontal and one vertical constraint

Without both constraints the view jumps to the top-left at run time.

Computer Science MCQ · More Screen Components and Orientation MCQs · Practise