Multiple choice technology platforms and products

Android defines two similar gravity attributes: android:gravity and android:layout_gravity. The android:gravity is a setting used by the container, whereas android:layout_gravity is used by the View.

  1. True

  2. False

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

The explanation is REVERSED in the statement. android:gravity controls content positioning WITHIN a View (used by the View), while android:layout_gravity controls the View's position WITHIN its container (used by the container/Layout). The statement incorrectly swaps their usage. The claimed answer B (False) is correct.