Dynamically changing the fragments inside a fragment tab host?
问题 I have one main activity which is fragment activity here I am setting two tabs with two fragments A and B in the B fragment I have one button when the user click on the button I want to change fragment B to fragment C. But the tabs above are visible... How I can achieve replacing fragments inside tabs? Any solution are greatly appreciated. 回答1: Basic concept- We can achieve this by creating a container. Each tab will be assigned with a specific container. Now when we need a new fragment then