martes, 7 de marzo de 2017

Problema con MVVM Cross

En el SplashScreen tenemos este código


[Activity(
        Label = "GifCatRoulette.Droid"
        , MainLauncher = true
        , Icon = "@mipmap/icon"
        , Theme = "@style/Theme.Splash"
        , NoHistory = true
        , ScreenOrientation = ScreenOrientation.Portrait)]

La guía de MVVM Cross dice que hay que en el caso de Visual Studio no debes cambiar la línea que dice "Icon... @mimap/icon". Falso,  hay que cambiarla a drawable como sigue


using Android.App;
using Android.Content.PM;
using MvvmCross.Droid.Views;

[Activity(
        Label = "GifCatRoulette.Droid"
        , MainLauncher = true
        , Icon = "@drawable/icon"
        , Theme = "@style/Theme.Splash"
        , NoHistory = true
        , ScreenOrientation = ScreenOrientation.Portrait)]