We add general / normal Fragmentprogrammatically, doing something like:
fragmentTransaction.add(containerViewId, fragmentToAdd, fragmentTag);
and replace a Fragmentwith another by doing something like:
fragmentTransaction.replace(containerViewId, newFragment, tagOfNewFragment);
But we add on DialogFragment
dialogFramentInstance.show(fragmentManager, fragmentTag);
The question is how to replace this DialogFragmentone that was added by the method show()?
source
share