Splash, Login, and Signup (including Google and Facebook)

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" ...

Get Expert Android Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.