我有个问题。请参阅以下内容:
How to manage multiple Activity stacks in an Android app, like you would on iOS with multiple UINavigationControllers within a UITabBarController?
通过这种可视化:
从上面的图片:
那我的问题是:
当按下选项卡1时,我总是在没有前面的子活动的情况下启动活动。
那么,我如何恢复活动,其中包含已经在堆栈中的子活动?
发布于 2018-04-04 04:20:24
您应该在选项卡中使用片段。碎片堆栈易于管理和轻量级过程。
https://stackoverflow.com/questions/49642560
相似问题