Closed ahadk closed 8 years ago
I've gone ahead and edited your issue. Use tripple ` when writing code blocks, or just indent your code...
Also please add some context to your issue. It does not make entirely sense what you are trying to convey. I.e. fill out the Issue template that you removed when opening a new issue.
Thanks Tomasz.
FragmentOne
is a Fragment
not an Activity
. Are you using the MvxFragmentsPresenter
in your Setup::CreateViewPresenter()
? Alternatively make sure that Setup.cs inherits from MvxAppCompatSetup
instead of MvxAndroidSetup
which should set that up for you.
Prefect Thanks ! ViewPresenter was missing in Setup.cs file.
If someone struggling with the same issue, here is the ViewPresenter.
protected override IMvxAndroidViewPresenter CreateViewPresenter()
{
var mvxFragmentsPresenter = new MvxFragmentsPresenter(AndroidViewAssemblies);
Mvx.RegisterSingleton<IMvxAndroidViewPresenter>(mvxFragmentsPresenter);
return mvxFragmentsPresenter;
}
I've edited your post (again!) to show your code block properly. TRIPPLE `!
FragmentOne.cs
FragmentOneViewModel.cs
MainViewModel.cs using MvvmCross.Core.ViewModels;
plugin used : mvvmCross.Droid.shared (not using droid.fragging) Droid.support.V4 droid.support.v7.AppCompat
Having Error: Unable to find explicit activity class {com.grappetite.schoolapp/schoolapp.droid.FragmentOne}; have you declared this activity in your AndroidManifest.xml?
Things i done : removing / adding plugins try checking manifest.xml (not useful to edit since it will override on runtime)
Possible guess : somethings seems wrong with register annotation, can anyone point out what going wrong? Thanks :)