Splash Screen, problems with background image

srensren DKMember
edited May 2013 in Xamarin.Android

Hey

I've created a splash screen like the one found in the xamarin tutorial:

[Activity (MainLauncher = true, Theme = "@style/Theme.Splash", NoHistory = true)]

public class SplashActivity : Activity

{

    protected override void OnCreate (Bundle bundle)

    {

        base.OnCreate (bundle);

        // Create your async task here...

        StartActivity (typeof(LoginActivity));

    }

}

    <style name="Theme.Splash" parent="android:Theme">

        <item name="android:windowNoTitle">true</item>

        <item name="android:background">@drawable/mita_app_icon</item>

</style>

how can i specify the width and height of my background image so its not taking up the hole screen? reason why i want to do this is to show a logo as splashscreen.

Posts

Sign In or Register to comment.