以下是简单的步骤。
step1 : fragment1 was showing and it's already added to Backstack
step2 : fragment2 is added to Backstack and showing it now
step3 : fragment2 is removed from Backstack
所以最后,fragment1
再次向用户展示。在这种情况下,是否有办法检测 fragment1 是否再次显示 inner fragment1
?
我试过了,OnResume()
但它不起作用。
感谢您的回答!