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

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -