title: Can't get transparent DialogFragment
body: <p>I have a dialog Fragment which look like that.</p>
  
  <p><img src="https://i.stack.imgur.com/q9PhX.png" alt="enter image description here"></p>
  
  <pre><code>AlertDialog ad = builder.create();
  Drawable d = new ColorDrawable(Color.BLACK);
  d.setAlpha(130);
  ad.getWindow().setBackgroundDrawable(d);
  </code></pre>
  
  <p>This code get background semi transparent. But I still got a white part on the bottom. I want to get rid of the white to just have semi transparent background</p>
  
  <p>I already tried a lot of stuff that I saw in other posts.</p>
  
  <p>I don't know what is the object that I must change between the DialogFragment, the AlertDialog and the LinearLayout. </p>
  
  <p>It may not be the LinearLayout, because when I increase margin, nothing is moving.</p>
  
  <p>Here is my code : </p>
  
  <pre><code>@Override
  public Dialog onCreateDialog(Bundle savedInstanceState) {
  //      setStyle(DialogFragment.STYLE_NORMAL, 0);
  //      setStyle(STYLE_NO_FRAME, R.style.CustomDialog);
  //      setStyle(STYLE_NO_FRAME, 0);
      AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
      View view = getActivity().getLayoutInflater().inflate(
              R.layout.share_or_die, null);
  
      AlertDialog ad = builder.create();
      Drawable d = new ColorDrawable(Color.BLACK);
      d.setAlpha(130);
      ad.getWindow().setBackgroundDrawable(d);
      ad.setCanceledOnTouchOutside(true);
      ad.getWindow().requestFeature(Window.FEATURE_NO_TITLE);
  
      ad.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);      
  
      return ad;
  
  }
  </code></pre>
  
  <p>I just call it in the mainActivity when user click back button: </p>
  
  <pre><code>@Override
  public void onBackPressed() {
          if (isUserConnected &amp;&amp; !hasShared) {
          shareOnExitDialog = new ShareOnExitDialog();
              shareOnExitDialog.setCancelable(true);
              shareOnExitDialog.show(getSupportFragmentManager(), "Exit");
          } else {
              finish();
          }
  
  
  }
  </code></pre>
  
  <p>Any help would be appreciated !</p>