title: Dialog Fragment Custom Body Checkbox
body: <p>I need a custom dialog, very similar to the one showed for authorizing USB DEBUG. I'm on API LEVEL 15 and above.
  <a href="https://i.stack.imgur.com/HbBUq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HbBUq.png" alt="DEBUG AUTH DIALOG"></a>
  Basically I need to put a checkbox with a text in the custom view. I tried:</p>
  
  <pre><code>LayoutInflater inflater = getActivity().getLayoutInflater();
  builder.setView(inflater.inflate(R.layout.my_dialog, (ViewGroup) getActivity().findViewById(R.id.root_of_my_dialog)));
  </code></pre>
  
  <p>And my custom view is:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/root_of_my_dialog"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:orientation="vertical"&gt;
  
      &lt;!-- Here I'll have the checkbox --&gt;
      &lt;TextView
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="Test"
          android:textColor="@color/red" /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>This way my custom layout is not getting the right margin/padding (the word test is just on the extreme left)...it's just like not having any style. How can I inherit from the standard/default one?</p>