Dialog去除黑色边框

自定义Dialog,创建子视图View,

private void showSelectDateDialog() {
AlertDialog.Builder builder=new Builder(AddCapsuleActivity.this);
View view=LayoutInflater.from(AddCapsuleActivity.this).inflate(R.layout.select_date_dialog, null);
rg=(RadioGroup)view.findViewById(R.id.RG);
b1=(RadioButton)view.findViewById(R.id.b1);
b2=(RadioButton)view.findViewById(R.id.b2);
b3=(RadioButton)view.findViewById(R.id.b3);
dialog = builder.create();
dialog.setView(view, 0, 0, 0, 0);  //去除边框的黑色边缘
rg.setOnCheckedChangeListener(this);
dialog.show();
}


你可能感兴趣的:(Dialog去除黑色边框)