code: public void setDialogWindowAttributes() {
          requestWindowFeature(Window.FEATURE_NO_TITLE);
          getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));
          getWindow().addFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND);
          getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
          WindowManager.LayoutParams lp = new WindowManager.LayoutParams();
          lp.copyFrom(getWindow().getAttributes());
          lp.width = WindowManager.LayoutParams.MATCH_PARENT;
          lp.height = WindowManager.LayoutParams.MATCH_PARENT;
          lp.gravity = Gravity.BOTTOM;
          lp.dimAmount = 0.8f;
          getWindow().setAttributes(lp);
          getWindow().setWindowAnimations(android.R.anim.slide_in_left);
          setCanceledOnTouchOutside(true);
      }
docs: Set the window attributes for the invite dialog.