아래처럼 생성하고 보여주는데 그냥 화면에 떡 하고 붙어버리니까 팝업이라는 느낌이 안들더라구요

저 코드 말고 사용 할 수있는 방법이 있을까요

밑에 굵은 글씨 코드는 작동하지 않습니다. ...

View layout = inflater.inflate(R.layout.popup_1, (ViewGroup)findViewById(R.id.popup_menu_root));
// create a 100px width and 200px height popup window
pw = new PopupWindow(layout, 700, 500, true);
Button b = (Button) layout.findViewById(R.id.button1);
b.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v)
{
pw.dismiss();
}
});
this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_BLUR_BEHIND,WindowManager.LayoutParams.FLAG_BLUR_BEHIND);
pw.showAtLocation(layout, Gravity.CENTER, 0, 0);