title: How to change the background color around a DialogFragment?
body: <p>I'm building a custom <code>DialogFragment</code>. The dialog layout is set to <code>my_dialog.xml</code>, but how can I modify the color around the dialog (the transparent grey)?</p>
  
  <p><img src="https://i.stack.imgur.com/Hxd7V.png" alt="enter image description here"></p>
  
  <p><b>my_dialog.xml</b></p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_gravity="center" &gt;
  
      &lt;TextView
          android:id="@+id/hello"
          android:layout_width="100dp"
          android:layout_height="100dp"
          android:background="@android:color/holo_orange_light"
          android:gravity="center"
          android:text="hello" /&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p><b>MyDialogFragment.java</b></p>
  
  <pre><code>public class MyDialogFragment extends DialogFragment {
  
      @Override
      public View onCreateView(LayoutInflater inflater, ViewGroup container,
              Bundle savedInstanceState) {
  
          View view = inflater.inflate(R.layout.my_dialog, container);
  
          getDialog().getWindow().requestFeature(Window.FEATURE_NO_TITLE);
  
          return view;
      }
  }
  </code></pre>