Last Updated: February 25, 2016
·
1.786K
· mahmoudhossam

Dynamically switching Android fragments

If you're trying to switch android fragments dynamically, don't declare a fragment tag in your XML, add() the fragment to the layout instead and use replace() to change the current fragment.