Fragment Loading Spinner/dialog In Honeycomb
When loading data into my Fragments I would would like to have an indeterminate spinner in the middle of the fragment (example in pic below) to show the user that content is loadin
Solution 1:
If you're using a ListFragment
you can call setListShown(false)
to display a loading progress indicator until you call setListShown(true)
. You can call these in the fragment's Loader
callback methods to show the indicator while the list is loading.
Solution 2:
I think the best way to accomplish this would be to use a ViewSwitcher. Then if you are using a loader, you can just switch between the views (the loading view and the content view) after the load has been completed.
Post a Comment for "Fragment Loading Spinner/dialog In Honeycomb"