title: Getting Margin in DialogFragment by Default?
body: <p>I am creating an app which uses dialog fragement which look like this</p>
  
  <p><a href="https://i.stack.imgur.com/pxtul.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pxtul.png" alt="enter image description here"></a></p>
  
  <p>As you can see i am getting a top margin in the dialog fragment which didnt set which you can see from my xml file</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout     xmlns:android="http://schemas.android.com/apk/res/android"
  android:orientation="vertical" android:layout_width="match_parent"
  android:layout_height="match_parent"&gt;
  
  &lt;TextView
      android:id="@+id/tv_title"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:text="@string/str_add_drop"
      android:textSize="@dimen/tv_title_font_size"/&gt;
  &lt;ImageButton
      android:background="@null"
      android:id="@+id/btn_close"
      android:layout_width="12dp"
      android:layout_height="12dp"
      android:src="@drawable/ic_close"
      android:layout_alignParentRight="true"
      android:layout_alignTop="@id/tv_title"
      android:layout_alignBottom="@id/tv_title"
      android:layout_marginRight="5dp"
      /&gt;
  &lt;EditText
      android:id="@+id/et_drop"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:layout_below="@id/tv_title"
      android:hint="@string/hint_et_drop"
      android:padding="16dp"
      android:inputType="textVisiblePassword"/&gt;
  
  &lt;DatePicker
      android:id="@+id/bpv_date"
      android:layout_width="match_parent"
      android:layout_height="300dp"
      android:layout_below="@id/et_drop"&gt;&lt;/DatePicker&gt;
  &lt;Button
      android:id="@+id/btn_add_it"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:layout_below="@id/bpv_date"
      android:text="@string/str_add_it"
      android:textAllCaps="false"/&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>Please tell me why i am getting this margin by default and how can i correct this.</p>