Adnroid Dialog设置圆角

Dialog dialog = new Dialog(YueJuanDetailActivity.this);
            dialog.setContentView(R.layout.dialog_yuejuandetail);
            dialog.setCancelable(false);

            Window dialogWindow = dialog.getWindow();
            if (dialogWindow != null) {
                dialogWindow.setBackgroundDrawable(getResources().getDrawable(R.drawable.yuejuan_detail_bg));
            }

 

你可能感兴趣的:(Android,UI,dialog圆角)