当我添加另一个包含另一个说的片段时,我有一个Fragment包含ListView说的内容:FragmentAListViewFragmentB
getFragmentManager().beginTransaction()
.add(R.id.fragment_container, FragmentB)
.commit()
我注意到即使getView()顶部片段现在仍然调用ListViewin ,为什么以及如何防止这种行为?FragmentAFragmentB