Android: can't replace one fragment with another

Solution 1:

You cannot replace a fragment defined statically in the layout file. You can only replace fragments that you added dynamically via a FragmentTransaction.

Solution 2:

Try to commit() at the end of the ft, you need to commit() your changes to let it know.