The Splash screen is the first screen of most of the apps. This screen usually has the app logo displayed for a few seconds and then navigates to the next screen. The splash screen can be also used to fetch static data from server at first launch.
Now, we will take a look at the XML layout for designing the splash screen:
<?xml version="1.0" encoding="utf-8"?><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"android:id="@+id/main"android:layout_width="match_parent"android:layout_height="match_parent"android:background="@color/theme_color"android:gravity="center"android:orientation="vertical"><ImageViewandroid:id="@+id/bgImage"android:layout_width="wrap_content" ...