Android - show an indeterminate progressbar without the dialog

后端 未结 5 1891
既然无缘
既然无缘 2020-12-03 03:17

I want to show my progressbar in the center of the screen when a processing happens on a button click. But I just want the progressbar without the dialog box..

Is th

5条回答
  •  时光取名叫无心
    2020-12-03 04:04

    It's explained in full in ApiDemos inside the SDK. The example that you want is named: ProgressBar3.java and can be found in \ApiDemos\src\com\example\android\apis\view\

    Also, if you want to remove the borders of the dialog so that only the progress bar appears you can define the dialog itself as a transparent view/overlay (it's explained in the examples as well).

提交回复
热议问题