When to choose between using two fragments and replacing one with the other in an activity (or child fragments in another fragment) or using two views and changing them using ViewSwitcher (or ViewFlipper)?
For example, while loading the data, I use a loading view, and then I want to change to the main view.
It really depends on your app structure. A ViewSwitcher may work, but is likely not the best way to do this. Another option you could do is not do a fragment at all, just change the content of the activity, but calling again
setContentView(int)
with the layout resource of the main view, once the loading is complete.