center in a linorlayout code example
Example: how to center all elements in a linearlayout
android:gravity takes care of its children,
android:layout_gravity takes care of itself
android:gravity takes care of its children,
android:layout_gravity takes care of itself