ProgressDialog的用法
pd= new ProgressDialog(AndroidTestActivity.this); //是Activity 的 Context
pd.setProgressStyle(ProgressDialog.STYLE_SPINNER);//
pd.setTitle("提示");//
pd.setMessage("正在联系中...");
Window window = pd.getWindow();
WindowManager.LayoutParams lp = window.getAttributes();
lp.alpha = 0.1f;// 透明度
lp.dimAmount = 0.1f;// 黑暗度
window.setAttributes(lp);
pd.setCancelable(false);//能否被点击取消
pd.show();