Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

不支持fragment 跳转fragment 么? #10

Open
qiushihang opened this issue Aug 29, 2024 · 3 comments
Open

不支持fragment 跳转fragment 么? #10

qiushihang opened this issue Aug 29, 2024 · 3 comments

Comments

@qiushihang
Copy link

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

@qiushihang
Copy link
Author

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

@qiushihang
Copy link
Author

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

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

@aleyn97
Copy link
Owner

aleyn97 commented Sep 10, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants