How to pop back stack for Activity with multiple Fragments?

前端 未结 2 1038
广开言路
广开言路 2020-12-04 09:03

\"Activity

Assume I have an Activity which contains two FrameLayouts (let\'s call them FrameA

2条回答
  •  遥遥无期
    2020-12-04 09:28

    FragmentManager.popBackStack(String name, FragmentManager.POP_BACK_STACK_INCLUSIVE)
    

    Here is the simplest answer, and the explanation is very clear: Well there are a few ways to go about this depending on the intended behavior, but this link should give you all the best solutions and not surprisingly is from Dianne Hackborn...

提交回复
热议问题