Layout_gravity x gravity
android:gravity -> sets the gravity of the content of the View its used on. android:layout_gravity -> sets the gravity of the View or Layout in its parent.