title: Custom Dialogbox background image is not shown clearly in android
body: <p>i have made a simple dialog activity in android for learning purpose and make a custom dialogbox and shown in another activity all is going well ,the only problem is background image i have put doesn't shown in whole Dialogbox background..but it also show a white background as a corner,Here i have put a screen so that my problem will be clear..!</p>
  
  <p>my image:</p>
  
  <p><img src="https://i.stack.imgur.com/4NeZV.png" alt="enter image description here"></p>
  
  <p>My code is:</p>
  
  <p><strong>dialog.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:background="#00000000"
      android:gravity="center"
      android:orientation="vertical" &gt;
  
      &lt;LinearLayout
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:layout_gravity="center"
          android:layout_marginLeft="40dp"
          android:layout_marginRight="40dp"
          android:background="@drawable/bg_dilog"
          android:orientation="vertical" &gt;
  
          &lt;ImageView
              android:id="@+id/dialog_close"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_gravity="right"
              android:layout_marginRight="5dp"
              android:layout_marginTop="5dp"
              android:background="@drawable/btn_close_38" /&gt;
  
          &lt;LinearLayout
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:orientation="vertical"
              android:paddingBottom="20dp"
              android:paddingLeft="30dp"
              android:paddingRight="30dp" &gt;
  
              &lt;TextView
                  android:id="@+id/textView1"
                  android:layout_width="fill_parent"
                  android:layout_height="wrap_content"
                  android:gravity="center"
                  android:text="Login"
                  android:textAppearance="?android:attr/textAppearanceLarge"
                  android:textColor="#202425" /&gt;
  
              &lt;Button
                  android:id="@+id/usernm"
                  android:layout_width="wrap_content"
                  android:layout_height="32dp"
                  android:layout_marginTop="5dp"
                  android:background="@drawable/text_box"
                  android:gravity="center"
                  android:hint="Please enter your client number"
                  android:textSize="12dp" /&gt;
  
              &lt;Button
                  android:id="@+id/pwd"
                  android:layout_width="wrap_content"
                  android:layout_height="31dp"
                  android:layout_marginTop="5dp"
                  android:background="@drawable/text_box"
                  android:gravity="center"
                  android:hint="Please password"
                  android:padding="5dp"
                  android:textSize="12dp" /&gt;
  
              &lt;LinearLayout
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:orientation="horizontal" &gt;
  
                  &lt;TextView
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_marginLeft="15dp"
                      android:textColor="#6e6d6c"
                      android:layout_marginTop="7dp"
                      android:text="Remember me" /&gt;
  
                  &lt;ImageView
                      android:id="@+id/chk_login"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_marginLeft="7dp"
                      android:background="@drawable/checkbox"
                      android:textColor="#000000" /&gt;
  
              &lt;/LinearLayout&gt;
  
              &lt;Button
                  android:id="@+id/login"
                  android:layout_width="fill_parent"
                  android:layout_height="wrap_content"
                  android:layout_marginBottom="10dp"
                  android:layout_marginTop="5dp"
                  android:background="@drawable/btn_small"
                  android:gravity="center"
                  android:text="Login"
                  android:textColor="#f6f1eb"
                  android:textStyle="bold" /&gt;
          &lt;/LinearLayout&gt;
      &lt;/LinearLayout&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>