Fragment loading spinner/dialog in Honeycomb

前端 未结 2 2232
夕颜
夕颜 2021-02-03 14:06

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 loa

2条回答
  •  半阙折子戏
    2021-02-03 14:29

    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.

提交回复
热议问题