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
A commonly-used method that works with linear layout is to set a property on the image button
android:layout_gravity="center"
You can choose whether to left-align, center-align, or right-align each object in the linear layout. Note that the above line is precisely the same as
android:layout_gravity="center_vertical|center_horizontal"