I am using a linear layout to display a pretty light initial screen. It has 1 button that is supposed to centre in the screen both horizontally and vertically. However no
If you want to center an item in the middle of the screen don't use a LinearLayout as these are meant for displaying a number of items in a row.
Use a RelativeLayout instead.
So replace:
android:layout_gravity="center_vertical|center_horizontal"
for the relevant RelativeLayout option:
android:layout_centerInParent="true"
So your layout file will look like this: