How to change default ProgressDialog circle color in android

前端 未结 10 952
夕颜
夕颜 2020-12-24 11:01

I am using ProgressDialog for showing progressbar

            ProgressDialog progressDialog = new ProgressDialog(context);
            progress         


        
10条回答
  •  Happy的楠姐
    2020-12-24 11:52

    In style.xml create style for dialog box :

    
    

    In this "android:textColorPrimary" need to define color you want to show and in java code define style of ProgressDialog like :

    ProgressDialog progressDialog = new ProgressDialog(context,R.style.AppCompatAlertDialogStyle);
    

    MORE : http://androidprogressdialogcustomcolor.blogspot.in/

提交回复
热议问题