小编Ign*_*ion的帖子

如何破坏碎片?

我有一个Activity.将Activity有两个Fragment秒.片段A是菜单.片段B是细节.

我尝试在片段B中创建其他片段C,因此,在片段中有3个片段Activity.我试图将片段B替换为片段D.

我猜片段B和C已经死了.但这些碎片还活着.Just Fragments是onDestroyView()州.我想要onDestroy()onDetach().

我该怎么做对Fragments.onDestroy()还是onDetach()?我不能破坏或改变Activity.

android android-fragments

49
推荐指数
3
解决办法
10万
查看次数

标签 统计

android ×1

android-fragments ×1