用AlertDialog自定义Dialog效果:
public void showDialog() {
final AlertDialog dialog = new AlertDialog.Builder(context).create();
dialog.show();
Window window = dialog.getWindow();
window.setBackgroundDrawable(null);//背景透明
window.setContentView(R.layout.dialog_seat_rollcall);
}