Forum Xamarin.Android

Splash Screen, problems with background image

srensren DKMember
edited May 2013 in Xamarin.Android


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>


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.


Sign In or Register to comment.