Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/195.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
MvvmCross 4.0中的Android支持片段命名空间_Android_Xamarin_Mvvmcross - Fatal编程技术网

MvvmCross 4.0中的Android支持片段命名空间

MvvmCross 4.0中的Android支持片段命名空间,android,xamarin,mvvmcross,Android,Xamarin,Mvvmcross,现在MvvmCross 4.0已经发布,我正在更新using语句以使用MvvmCross.Droid.Support.V7.Fragging。我已经通过NuGet添加了这个包,并在下面的using语句中引用了它 using Android.Content; using System.Collections.Generic; using System.Linq; using MvvmCross.Core.ViewModels; using MvvmCross.Platform.Platform;

现在MvvmCross 4.0已经发布,我正在更新using语句以使用MvvmCross.Droid.Support.V7.Fragging。我已经通过NuGet添加了这个包,并在下面的using语句中引用了它

using Android.Content;
using System.Collections.Generic;
using System.Linq;
using MvvmCross.Core.ViewModels;
using MvvmCross.Platform.Platform;
using MvvmCross.Droid.Views;
using MvvmCross.Droid.Platform;
using System.Reflection;
using MvvmCross.Droid.Support.V7.Fragging;

namespace My.Droid
{
public class Setup : MvxAndroidSetup
{
    public Setup(Context applicationContext) : base(applicationContext)
    {
    }

    protected override IMvxApplication CreateApp()
    {
        return new AN.Core.App();
    }

    protected override IMvxTrace CreateDebugTrace()
    {
        return new DebugTrace();
    }

    protected override IEnumerable<Assembly> AndroidViewAssemblies => new List<Assembly>(base.AndroidViewAssemblies)
    {
        typeof(Android.Support.V7.Widget.Toolbar).Assembly,
        typeof(Android.Support.V4.Widget.DrawerLayout).Assembly,
        typeof(Android.Support.V4.View.ViewPager).Assembly,
        typeof(MvvmCross.Droid.Support.V7.Fragging).Assembly,
    };

    protected override IMvxAndroidViewPresenter CreateViewPresenter()
    {
        return new MvxFragmentsPresenter(AndroidViewAssemblies);
    }
   }
}
使用Android.Content;
使用System.Collections.Generic;
使用System.Linq;
使用MvvmCross.Core.ViewModels;
使用MvvmCross.Platform.Platform;
使用MvvmCross.Droid.Views;
使用MvvmCross.Droid.Platform;
运用系统反思;
使用MvvmCross.Droid.Support.V7.Fragging;
名称空间My.Droid
{
公共类设置:MvxAndroidSetup
{
公共设置(上下文应用上下文):基本(应用上下文)
{
}
受保护的覆盖IMvxApplication CreateApp()
{
返回新的.Core.App();
}
受保护的覆盖IMVXStrace CreateDebugTrace()
{
返回新的DebugTrace();
}
受保护的覆盖IEnumerable AndroidViewAssemblys=>新列表(base.AndroidViewAssemblys)
{
typeof(Android.Support.V7.Widget.Toolbar).Assembly,
typeof(Android.Support.V4.Widget.DrawerLayout).Assembly,
typeof(Android.Support.V4.View.ViewPager).Assembly,
类型(MvvmCross.Droid.Support.V7.Fragging).Assembly,
};
受保护的覆盖IMvxAndroidViewPresenter CreateViewPresenter()
{
返回新的MvxFragmentsPresenter(AndroidViewAssembly);
}
}
}

VS 2015没有找到我的using语句中的最后一个库,尽管它是通过NuGet添加的。此外,找不到MvxFragmentsPresenter命名空间。是否要使用不同的程序包而不是引用的程序包,或者是否应该使用不同的命名空间来解决此问题?

命名空间是,您需要安装如果您使用支持程序包,命名空间将不包含
FullFragging