private Dialog getSetupDialog() {
       
        AlertDialog.Builder builder;
        AlertDialog alertDialog;
        Context mContext = getParent();
        LayoutInflater inflater = (LayoutInflater)mContext.getSystemService(LAYOUT_INFLATER_SERVICE);
        View dialog_layout = inflater.inflate(R.layout.option_dialog_layout, (ViewGroup)findViewById(R.id.layout_root));
        dialog = new Dialog(mContext);
        dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
        dialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));
        final Button btn_3g_on = (Button)dialog_layout.findViewById(R.id.on_3g);
        final Button btn_3g_off = (Button)dialog_layout.findViewById(R.id.off_3g);
        final Button btn_3g_01 = (Button)dialog_layout.findViewById(R.id.btn_3g_01);
        final Button btn_3g_02 = (Button)dialog_layout.findViewById(R.id.btn_3g_02);
        //on
        btn_3g_on.setOnClickListener(new OnClickListener() {
            public void onClick(View v) {
                Toast.makeText(getApplicationContext(), "on", 0).show();
            }
        });
        //off
        btn_3g_off.setOnClickListener(new OnClickListener() {
            public void onClick(View v) {
                Toast.makeText(getApplicationContext(), "off", 0).show();
            }
        });
        //다시묻지않기
        btn_3g_01.setOnClickListener(new OnClickListener() {
            public void onClick(View v) {
                dialog.dismiss();
            }
        });
        //매번 확인하기
        btn_3g_02.setOnClickListener(new OnClickListener() {
            public void onClick(View v) {
                dialog.dismiss();
            }
        });
       
        builder = new AlertDialog.Builder(mContext);
        builder.setView(dialog_layout);
        alertDialog = builder.create();
       
        return alertDialog;
    }


위와 같은 식으로 코딩을 했어요

근데 뒷 getWindow()받아서 배경 투명처리도 해보고

안되네여

객체가 dialog가 아닌가 ㅠㅠ

에이고 ㅠ