Android: can't replace one fragment with another
You cannot replace a fragment defined statically in the layout file. You can only replace fragments that you added dynamically via a FragmentTransaction
.
Try to commit()
at the end of the ft, you need to commit()
your changes to let it know.