-
Notifications
You must be signed in to change notification settings - Fork 206
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 跳转activity 传值问题 #58
Comments
在activity中没有收到fragment传递过来的数据 |
页面是跳转过来了的 引用就是为空 |
既然代码生成了, 说明生成的部分没有问题. 那你可以调试一下代码. 看下 |
好的 我好像知道问题了 在文档里找到 Component.inject(this) 这句 看您的例子 找到了 谢谢 |
....................................................................................................... 你没写这句吗? |
是的 文档里没提 自己没注意 总觉得缺少点什么 于是仔细再看了你项目的代码 |
你别骗我撒, 文档 中很明显有这么一段: 这文档都很久没动了哦. 反正问题解决就好了. 我这里关闭了撒. |
谢谢 哥老关 |
fragment的代码
Router
.with(this@HomeTabFragment)
.host("home")
.path("more")
.putString("classifyType", sectionList[i].classifyType)
.putInt("typeId", sectionList[i].typeId)
.forward()
activity的代码
@JvmField
@AttrValueAutowiredAnno("classifyType")
var mClassifyType: String ?= null
The text was updated successfully, but these errors were encountered: