The Question : 1367 people think this question is useful I know we can set the following values to the android:gravity and android:layout_gravity properties: center center_vertical center_horizontal, etc. But I am confused regarding both of these. What is the difference between the usage of android:gravity and android:layout_gravity? The Question Comments : Easy trick to remember: