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.
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.