android:gravity=”value”
android:gravity lets you say where you want the view’s contents to appear inside the view
| Value | What it does |
| top | Puts the view’s content at the top of the view |
| bottom | Puts the view’s contents at the bottom of the view. |
| left | Puts the view’s content at the left of the view |
| right | Puts the view’s contents at the right of the view |
| start | Puts the view’s content at the start of the view |
| end | Puts the view’s content at the end of the view |
| center_vertical | Centers the views contents vertically |
| center_horizontal | Centers the views content horizontally |
| center | Centers the views contents vertically and horizontally |
| fill_vertical | Makes the views contents fill the view vertically |
| fill_horizontal | Makes the views constents fill the view horizontally |
| fill | Makes the views contents fill the view vertically and horizontally |