Generally the splash page displays an image of the App on launch of the app. Most of time its just an single image that is intended to be displayed in the splash page. Depending of the size of image and device where the apps runs, it may not fit the screen fully leaving space on right or bottom of screen, in other words it left aligned and is not equally spaced from the screen edges.


To have the image display in the center, use the android:layout_gravity=”center” attribute as show below:

<ImageView
        android:id=”@+id/imageView1″
        android:layout_width=”wrap_content”
        android:layout_height=”wrap_content”
        android:layout_gravity=”center”
        android:src=”@drawable/loading_screen”/>