Question: what is the difference between add and replace fragment android?
Answer: Basic difference between add() and replace() can be described as: add() is used for simply adding a fragment to some root element. replace() behaves similarly but at first it removes previous fragments and then adds next fragment.