Which method is being called after popBackStack?

前端 未结 6 579
误落风尘
误落风尘 2020-12-29 04:13

I have an activity where I am calling three fragments - each depending on each other:

A(ctivity) -> f1 (Fragment one, title {is|should}: list) -> f2 (Fragment two,

6条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-29 04:40

    There's also one other good source that you can read through.

    I think, the important point is the difference of the transaction you performed on Fragment B. If it's add, then no lifecycle methods are called on Fragment A, if it's replace, you will get some calls on those methods.

提交回复
热议问题