如何在ProgressDialog中更改Progress Spinner?

时间:2016-09-17 07:45:48

标签: android progressdialog

我有一个Material ProgressBar库,我希望将其集成到ProgressDialog中。怎么做?

我只想更改Loader / Spinner,而不是其他任何内容。

1 个答案:

答案 0 :(得分:0)

使用此:

     progressDoalog = new ProgressDialog(getContext());
       // progressDoalog.setMax(100);
       // progressDoalog.setMessage("Loading Content......");
        progressDoalog.setIndeterminate(true);
        progressDoalog.setTitle("Loading Content ");
        progressDoalog.setProgressStyle(ProgressDialog.STYLE_SPINNER);
        progressDoalog.setIndeterminate(true);
        progressDoalog.show();

Letme知道它是否有帮助