center an item in a linearlayout 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