Android splash screen are normally used to show user some kind of progress before the app loads completely. Some people uses splash screen just to show case their app / company logo for a couple of second. Unfortunately in android we don’t have any inbuilt mechanism to show splash screen compared to iOS.
we need to define the splash screen in your layout.xml file
<? xml version=”1.0″ encoding=”utf-8″?>
<LinearLayout xmlns:android=”http://schemas.android.com/apk/res/android” android:orientation=”vertical” android:layout_width=”fill_parent” android:layout_height=”fill_parent”>
<ImageView android:id=”@+id/splashscreen”
android:layout_width=”wrap_content”
android:layout_height=”fill_parent”
android:src=”@drawable/splash”
android:layout_gravity=”center”/> <TextView
android:layout_width=”fill_parent”
android:layout_height=”wrap_content”
android:text=”Hello World, splash”/>
</LinearLayout>
Comments
Post a Comment