2

我们如何更改进度对话框的背景颜色?

progessDialog = ProgressDialog.show(this, "", "Please Wait....",true);
progessDialog.getWindow().setContentView(R.layout.progressdialog);
4

1 回答 1

1

更改颜色背景

   final ProgressDialog pDialog = new  ProgressDialog(this,AlertDialog.THEME_HOLO_LIGHT);

//final ProgressDialog pDialog = new  ProgressDialog(this);

// pDialog.getWindow().setBackgroundDrawable(new      ColorDrawable(Color.YELLOW));

    pDialog.setMessage("Loading...");

    pDialog.show();
于 2015-12-05T10:39:57.613 回答