Skip to content

同时打开打开多个fragment时候的问题 #473

Closed
@Gundam0079

Description

@Gundam0079

用start方法同时打开多个fragment 会遇到栈顺序不对的问题
定位到FragmentationDelegate 的start方法 由于事务的问题
尝试同时调用 bindContainerId和 ft.add ft.addToBackStack最后执行supportCommit(fragmentManager, ft);貌似还是不对

需求是这样的有时候页面路由 会有同时打开多个页的需求 试过用延时200毫秒逐个执行start方法是可以的
但是中间会呈现出一页页跳转的效果不太理想
所以想请大神提供一个打开fragmentList的方法么

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions