title: DialogFragment remove black border
body: <p>I saw <a href="https://stackoverflow.com/q/10433764/1056359">this question</a> and also <a href="https://stackoverflow.com/q/11717052/1056359">this one</a> and some others, but nothing really helped me.</p>
  <p>I'm building a quick action <code>DialogFragment</code> for my list view and trying to set a custom view to it according to the <a href="http://developer.android.com/guide/topics/ui/dialogs.html#CustomLayout" rel="nofollow noreferrer">android dev guide</a>.</p>
  <h2>view_quick_action.xml</h2>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;RelativeLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
      android:layout_width=&quot;wrap_content&quot;
      android:layout_height=&quot;wrap_content&quot;
      android:background=&quot;@android:color/white&quot; &gt;
  
      &lt;ImageView
          android:id=&quot;@+id/quick_action_image&quot;
          android:layout_width=&quot;50dp&quot;
          android:layout_height=&quot;50dp&quot;
          android:layout_margin=&quot;20dp&quot;
          android:scaleType=&quot;fitXY&quot;
          android:src=&quot;@drawable/windows1&quot; /&gt;
  
      &lt;TextView
          android:id=&quot;@+id/quick_action_name&quot;
          android:layout_width=&quot;wrap_content&quot;
          android:layout_height=&quot;wrap_content&quot;
          android:layout_alignTop=&quot;@+id/quick_action_image&quot;
          android:layout_toRightOf=&quot;@+id/quick_action_image&quot;
          android:ellipsize=&quot;end&quot;
          android:singleLine=&quot;true&quot;
          android:text=&quot;Lilly&quot;
          android:textColor=&quot;#585858&quot;
          android:textSize=&quot;16sp&quot; /&gt;
  
      &lt;TextView
          android:id=&quot;@+id/quick_action_activity&quot;
          android:layout_width=&quot;wrap_content&quot;
          android:layout_height=&quot;wrap_content&quot;
          android:layout_alignBottom=&quot;@+id/quick_action_image&quot;
          android:layout_toRightOf=&quot;@+id/quick_action_image&quot;
          android:text=&quot;Updated 4 minutes ago&quot;
          android:textColor=&quot;#a3a3a3&quot;
          android:textSize=&quot;15sp&quot; /&gt;
  
      &lt;ImageButton
          android:id=&quot;@+id/popup_grid_leave&quot;
          android:layout_width=&quot;50dp&quot;
          android:layout_height=&quot;50dp&quot;
          android:layout_alignParentLeft=&quot;true&quot;
          android:layout_below=&quot;@+id/quick_action_activity&quot;
          android:layout_margin=&quot;20dp&quot;
          android:layout_marginTop=&quot;30dp&quot;
          android:background=&quot;@color/transperent&quot;
          android:src=&quot;@drawable/ic_action_leave&quot; /&gt;
  
      &lt;ImageButton
          android:id=&quot;@+id/popup_grid_silence&quot;
          android:layout_width=&quot;50dp&quot;
          android:layout_height=&quot;50dp&quot;
          android:layout_alignBottom=&quot;@+id/popup_grid_leave&quot;
          android:layout_alignTop=&quot;@+id/popup_grid_leave&quot;
          android:layout_centerHorizontal=&quot;true&quot;
          android:background=&quot;@color/transperent&quot;
          android:src=&quot;@drawable/ic_action_silence&quot; /&gt;
  
      &lt;ImageButton
          android:id=&quot;@+id/popup_grid_mark_as_read&quot;
          android:layout_width=&quot;50dp&quot;
          android:layout_height=&quot;50dp&quot;
          android:layout_alignBottom=&quot;@+id/popup_grid_leave&quot;
          android:layout_alignParentRight=&quot;true&quot;
          android:layout_alignTop=&quot;@+id/popup_grid_leave&quot;
          android:layout_marginRight=&quot;15dp&quot;
          android:background=&quot;@color/transperent&quot;
          android:src=&quot;@drawable/ic_action_mark_as_read&quot; /&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  <h2>QuickActionFragment.java</h2>
  <pre><code>public class QuickActionFragment extends DialogFragment {
  
      @Override
      public Dialog onCreateDialog(Bundle savedInstanceState) {
      AlertDialog.Builder builder = new AlertDialog.Builder(mContext);
  
          View v = LayoutInflater.from(mContext).inflate(
          R.layout.view_quick_action, null, false);
  
          // SET ALL THE VIEWS
  
          builder.setTitle(null);
  
          AlertDialog dialog = builder.create();
          dialog.setView(v, 0, 0, 0, 0);
          // this line didn't change anything
          // dialog.getWindow().setBackgroundDrawable(new ColorDrawable(0));
  
          return dialog;
      }
  }
  </code></pre>
  <p>after all this, when I run <code>dialogFragment.show(getSupportedFragmentManager())</code> I still get the black border as shown in the image:
  <img src="https://i.stack.imgur.com/rjrxa.png" alt="quickActionImage" /></p>
  <p>any thoughts on how to fix this?</p>