title: Dialog using DialogFragment not showing up properly
body: <p>I am using DialogFragment to display a dialog.But the dialog was displayed with the title.When i used no title my dialog was not being displayed properly.</p>
  
  <p>Dialog with title
  <img src="https://i.stack.imgur.com/Zuks6.png" alt="enter image description here"></p>
  
  <p>Dialog without title</p>
  
  <p><img src="https://i.stack.imgur.com/nrIwg.png" alt="enter image description here"></p>
  
  <p>Xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:orientation="vertical"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:background="@drawable/share_background"
      &gt;
  
      &lt;LinearLayout
          android:orientation="vertical"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_marginTop="20dp"
         &gt;
  
          &lt;TextView
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:text="Share"
              android:textSize="25sp"
              android:textColor="#fff"
              android:id="@+id/textView"
              android:layout_gravity="center_horizontal" /&gt;
  
          &lt;Button
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:text="New Button"
              android:id="@+id/button" /&gt;
  
          &lt;Button
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:text="New Button"
              android:id="@+id/button2" /&gt;
  
          &lt;Button
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:text="New Button"
              android:id="@+id/button3" /&gt;
      &lt;/LinearLayout&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>DialogFragment Code</p>
  
  <pre><code>public class ShareDialogFragment extends DialogFragment {
  
      private View view;
  
      @Override
      public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
          view = inflater.inflate(R.layout.share_dialog, null, false);
         getDialog().getWindow().requestFeature(Window.FEATURE_NO_TITLE);
          return view;
      }
  
  
  }
  </code></pre>
  
  <p>Why this is happening????</p>