FragmentManager allows you to support multiple back stacks with the saveBackStack()这是navigation component实现中实现多栈导航使用的方法.
and restoreBackStack() methods. These methods allow you to swap between back stacks by saving one back stack and restoring a different one.
saveBackStack() works similarly to calling popBackStack() with the optional name优点:
parameter: the specified transaction and all transactions after it on the stack are popped.
The difference is that saveBackStack() saves the state of all fragments in the popped transactions.
欢迎光临 ToB企服应用市场:ToB评测及商务社交产业平台 (https://dis.qidao123.com/) | Powered by Discuz! X3.4 |