MVVMCross 片段导航在 4.0 中如何工作?
How does MVVMCross fragment navigation work in 4.0?
自从新升级后,我不知道如何使用碎片导航。
here 中的很多代码被注释掉了。如果我使用剩下的代码,它就不起作用。我收到 activity 未找到异常。我使用与演示示例中相同的 headers。创建成功的片段需要遵循哪些步骤?
新片段实际上非常简单。您所要做的就是用 MvxFragmentAttribute
and then making sure that the type passed as the first argument of the MvxFragmentAttribute
implements IMvxFragmentHost
, so that it can handle the Open and Close methods used by the MvxFragmentsPresenter
注释您的片段 类。
新的 MvxFragmentsPresenter
将处理当前顶部 Activity 是否负责显示请求的片段,如果不是,它将启动正确的 activity 在显示片段之前。
自从新升级后,我不知道如何使用碎片导航。
here 中的很多代码被注释掉了。如果我使用剩下的代码,它就不起作用。我收到 activity 未找到异常。我使用与演示示例中相同的 headers。创建成功的片段需要遵循哪些步骤?
新片段实际上非常简单。您所要做的就是用 MvxFragmentAttribute
and then making sure that the type passed as the first argument of the MvxFragmentAttribute
implements IMvxFragmentHost
, so that it can handle the Open and Close methods used by the MvxFragmentsPresenter
注释您的片段 类。
新的 MvxFragmentsPresenter
将处理当前顶部 Activity 是否负责显示请求的片段,如果不是,它将启动正确的 activity 在显示片段之前。