I have a Fragment
which contains a ListView
say FragmentA
, when I add another Fragment which contains another ListView
say FragmentB
:
getFragmentManager().beginTransaction()
.add(R.id.fragment_container, FragmentB)
.commit()
I noticed that getView()
of ListView
in FragmentA
is still getting called even though the top fragment is now FragmentB
, any reason why and how do I prevent this behavior?