I\'m implementing a \"fragments-101\" program, where-in I replace a fragment when its corresponding button is clicked. However, the below thing happens:
Fragments that are inflated directly from xml layout with tag cannot be replaced.
You should have an empty FrameLayout inside your xml layout. And you should add, remove, replace all your Fragments programmatically into that FrameLayout.