aleyn97 / router

Routing framework for Android.
Apache License 2.0
99 stars 11 forks source link

不支持fragment 跳转fragment 么? #10

Closed qiushihang closed 1 month ago

qiushihang commented 2 months ago

我调用LRouter.build(xxx).navigation(), 却提示Acitivity 没有在AndroidManifest.xml

qiushihang commented 2 months ago

我主要是fragment跳转到另一个fragment,2个fragment都已经在路由表里注册,但是我看源码,Navigator.kt里goNavigator 是不是不支持fragment跳转?

qiushihang commented 2 months ago

LRouter.getFragment("/Main/Home")?.let { supportFragmentManager .beginTransaction() .replace(R.id.fl_content, it) .commitAllowingStateLoss() }

我看到了你的demo 里是这样跳的,是不支持像Arouter.build(xxxx).navigation()跳转对么

aleyn97 commented 1 month ago

不支持,要做单 Activity 应用 Fragment 之间的跳转 可以用 JetPack 的 navigation