I've followed the instructions from Xamarin here: http://docs.xamarin.com/android/tutorials/Creating_a_Splash_Screen
This works very well, but does not mention landscape mode at all. I can rotate my splash image to be portrait size which gets the best results but it's still not ideal: the splash image rotates away as it disappears and the main activity is launched. This is because the splash activity is in portrait mode and the main activity is in landscape.
I've tried adding 'screenOrientation = ScreenOrientation.Landscape` to the splash activity's Activity attribute, but this results in the splash screen not being displayed.
According to this question, it is not possible to disable the rotation animation, so I'd really like to find out how to make this initial splash activity display in landscape mode, or some other approach that achieves the same result. Below is the code for the splash activity, with the offending ScreenOrientation parameter.
[Activity(
Label = "The App Name",
Icon = "@drawable/icon",
MainLauncher = true,
Theme = "@style/Theme.Splash",
//ScreenOrientation = ScreenOrientation.Landscape,
NoHistory = true)]
public class ActivitySplash : Activity
{
protected override void OnCreate(Bundle bundle)
{
base.OnCreate(bundle);
// Start our real activity
StartActivity(typeof(ActivityMain));
}
}