Posted By: Anonymous
I know we can set the following values to the
But I am confused regarding both of these.
What is the difference between the usage of
Their names should help you:
android:gravitysets the gravity of the contents (i.e. its subviews) of the
Viewit’s used on.
android:layout_gravitysets the gravity of the
Layoutrelative to its parent.
And an example is here.