Fragment loading spinner/dialog in Honeycomb

前端 未结 2 2195
夕颜
夕颜 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:37

    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.

提交回复
热议问题