I am trying to create splash screen for my android application, as shown in this link http://developer.xamarin.com/guides/android/user_interface/creating_a_splash_screen/
Unfortunately this link just shows how to make a splash screen using a drawable. But what I need to do is to create a splash screen using a Layout so that I can easily customize how it looks and make it compatible with different screen sizes.
Thanks
What you can do is to create a Activity that represents your splash screen. Ex:
SplashActivity
. Then when your SplashActivity is created you start a timer (Ex:System.Timers.Timer
) with 3 seconds duration. When those 3 seconds have passed you simply start the main activity for your app.To prevent the user from navigating back to the splash activity, you simply add the
NoHistory = true
property to the ActivityAttribute (just above the activity class decleration).See example: