android - What's the difference between changing two fragments with FragmentManager and two views with ViewSwitcher? -
when choose between using 2 fragments , replacing 1 other in activity (or child fragments in fragment) or using 2 views , changing them using viewswitcher (or viewflipper)?
for example, while loading data, use loading view, , want change main view.
it depends on app structure. viewswitcher may work, not best way this. option not fragment @ all, change content of activity, calling again setcontentview(int)
layout resource of main view, once loading complete.
Comments
Post a Comment