Skip to content

RouteProcessor 注册Fragment的问题 #1

@srxffcc1

Description

@srxffcc1

看作者很久没更新了属于是自问自答
router-compiler 会自动把Fragment注册到 Router_Root_xx中
但是destinationText 不够正确 使用的是注解的名字 而不是 navigation.xml里 注册的id
我的解决方案是
通过 https://www.coder.work/article/3604892 这里的方案 在compiler时获得一个 项目地址
从而对navigation.xml做解析 得到正确的 destinationText
image
image
image
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions