Android - Loading, please wait

前端 未结 3 1036
轮回少年
轮回少年 2021-01-30 13:51

Is there a standard \"Loading, please wait\" dialog I can use in Android development, when I invoke some AsyncTask (downloading some data from remote service for example)?

3条回答
  •  失恋的感觉
    2021-01-30 14:43

    You mean something like an indeterminate ProgressDialog?

    Edit: i.e.

    ProgressDialog dialog = ProgressDialog.show(context, "Loading", "Please wait...", true);
    

    then call dialog.dismiss() when done.

提交回复
热议问题