title: Android get full width for custom Dialog
body: <p>in my application my created custom dialog dont have full height and i can not change and customize that.for example see this screen shot:</p>
  
  <p><img src="https://i.stack.imgur.com/hGZHR.png" alt="enter image description here">
  My code:</p>
  
  <pre><code>final Dialog contacts_dialog = new Dialog(ActivityGroup.this, R.style.theme_sms_receive_dialog);
  contacts_dialog.setContentView(R.layout.dialog_schedule_date_time);
  contacts_dialog.setCancelable(true);
  contacts_dialog.setCanceledOnTouchOutside(true);
  contacts_dialog.show();
  </code></pre>
  
  <p>layout:</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/layoutRoot"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:background="@null"
      android:orientation="vertical" &gt;
  
      &lt;LinearLayout
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:background="@drawable/shape_header_dialog_background"
          android:orientation="horizontal"
          android:padding="4dp" &gt;
  
          &lt;TextView
              android:id="@+id/TextView21"
              android:layout_width="fill_parent"
              android:layout_height="fill_parent"
              android:layout_marginRight="5dp"
              android:layout_weight="2"
              android:gravity="center_vertical|right"
              android:text="@string/choose_schedule_time_date"
              android:textColor="#ffffff"
              android:textSize="14sp"
              android:textStyle="bold" /&gt;
  
          &lt;ImageView
              android:id="@+id/ImageView03"
              android:layout_width="50dp"
              android:layout_height="50dp"
              android:layout_marginTop="0dp"
              android:background="@drawable/icon_scudule_time" /&gt;
      &lt;/LinearLayout&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>Style:</p>
  
  <pre><code>&lt;style name="theme_sms_receive_dialog" parent="android:style/Theme.Dialog"&gt;
      &lt;item name="android:windowNoTitle"&gt;true&lt;/item&gt;
      &lt;item name="android:background"&gt;@android:color/transparent&lt;/item&gt;
      &lt;item name="android:windowBackground"&gt;@android:color/transparent&lt;/item&gt;
      &lt;item name="numberPickerStyle"&gt;@style/NPWidget.Holo.Light.NumberPicker&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>