Xamarin.Forms.1.5.1 Released issues

Hello,
After upgrade xamarin forms 1.5.1 version getting following issues :

  • Getting error to create splash screen. In earlier version following theme working good.
But now  null reference exception occurs.

After set parent = Theme.AppCompat then also problem not resolved.
  • Another issue is unable to create "values-21" folder in resource directory. Shows following error msg :
    Invalid resource directory name: "res values-21".

    Thank you

Tagged:

Posts

  • LGMaestrelliLGMaestrelli BRMember ✭✭✭
    edited October 2015

    The resource's folder should be "values-v21" and not "values-21".

  • UddhaoPachrneUddhaoPachrne INMember ✭✭

    @LGMaestrelli thanks, did simple mistake.

    Somebody konw how to apply splash screen theme using App Compat ??
    
  • UddhaoPachrneUddhaoPachrne INMember ✭✭

    I Fixed splash screen issue for App Compat. In SplashScreen activity when we write NoHistory = true then no need to write Finish() in earlier version but now need to write both in splash screen activity like this :

    [Activity(Label = " test ", Icon = "@drawable/AppIcon", MainLauncher = true, Theme = "@style/SplashScreenTheme", NoHistory = true]

    public class SplashActivity : global::Xamarin.Forms.Platform.Android.FormsAppCompatActivity
    {
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);
    
            StartActivity(typeof(MainActivity));
    
            Finish(); // Dont know why need this method  when already use NoHistory = true
        }
    }
    

    But after use Finish(), my problem resolved.

Sign In or Register to comment.