Material Design progressdialog

后端 未结 2 859
清酒与你
清酒与你 2021-02-13 03:51
 alertDialog = new ProgressDialog(this);                          
 alertDialog.setMessage(getResources().getString(R.string.loader));
 alertDialog.setCancelable(false);         


        
2条回答
  •  夕颜
    夕颜 (楼主)
    2021-02-13 04:13

    This question is a bit old, but if you are using AppCompat, just add this attribute:

    @color/my_color_accent
    

    In your style

    
    

    Hope this helps!

提交回复
热议问题