Create a progressDialog only with the spinner (in the middle)

后端 未结 2 670
抹茶落季
抹茶落季 2020-12-04 22:12

I need to create a progressDialog only with the spinner and without the box (or at least with a smaller box and the image in the middle).

I don\'t want to add a spin

2条回答
  •  甜味超标
    2020-12-04 22:58

    Just single line code :

    pd.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));
    

提交回复
热议问题