Multiple choice

Which of the following is correct for relativelayout?

  1. The child views of a relative layout are arranged in the order they are declared.

  2. There is a circular dependency in a relative layout.

  3. We can set the width of the Relativelayout to wrap_content.

  4. We can set the height of the Relativelayout to wrap_content.

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The child views of a relative layout are arranged in the order they are declared. We cannot have a circular dependency in a Relativelayout. Also we cannot set the width of the RelativeLayout to wrap_content.