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.

Leave a Comment