a.首先为这个半透明弹窗新建一个名为dialog.xml的Layout
b.res/values文件夹新建名为 dialogStyle.xml的resources样式文件,具体代码如下:
c. View diaView=View.inflate(this, R.layout.dialog, null);
dialog=new Dialog(AuthorizeActivity.this,R.style.dialog);//这里应用了你的自定义样式
dialog.setContentView(diaView);
dialog.show();