Checking out the gravity attribute

View Gravity:

It's possible to combine values for gravity as follows:

    android:gravity="top|center_horizontal"