title: Android drawable background corner not remove
body: <p>I am applying a drawable background in our xml layout but it also contains border how to remove it ?</p>
  
  <p>When i put the corners then it apply the corner but it not apply the corner on whole layout (means not content goes outside the border area).</p>
  
  <p><a href="https://i.stack.imgur.com/ucomK.png" rel="noreferrer"><img src="https://i.stack.imgur.com/ucomK.png" alt="custom dialog box image"></a></p>
  
  <p>This is my drawable file</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;shape
      xmlns:android="http://schemas.android.com/apk/res/android"
      android:shape="rectangle"&gt;
  
  &lt;solid
      android:color="#fff"&gt;
  
  &lt;/solid&gt;
  
  &lt;stroke
      android:width="2dp"
      android:color="@color/block_button_bg"&gt;
  
  &lt;/stroke&gt;
  
  &lt;corners
      android:radius="10dp"&gt;
  
  &lt;/corners&gt;
  
  
  &lt;/shape&gt;
  </code></pre>
  
  <p>and this my xml 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:layout_width="250dp"
  android:layout_height="wrap_content"
  android:layout_gravity="center"
  android:orientation="vertical"
  android:background="@drawable/custom_dialog_bg"&gt;
  
  &lt;TextView
      android:id="@+id/txtDiaTitle"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:text="@string/app_dialog_title"
      android:textColor="@color/black"
      android:textStyle="bold"
      android:gravity="center"
      android:padding="8dp"
      android:textAppearance="@android:style/TextAppearance.Medium"/&gt;
  
  &lt;TextView
      android:id="@+id/txtDiaMsg"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:gravity="center"
      android:padding="6dp"
      android:layout_gravity="center"
      android:layout_marginBottom="10dp"
      android:text="@string/app_dialog_desc"
      android:textColor="@color/black"
      android:textSize="12sp"/&gt;
  
  &lt;View
      android:layout_width="match_parent"
      android:layout_height="1dip"
      android:background="@color/alarm_color"
      /&gt;
  
  &lt;LinearLayout
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:orientation="horizontal"&gt;
  
      &lt;TextView
          android:id="@+id/yes"
          android:layout_width="0dp"
          android:layout_height="wrap_content"
          android:layout_weight="1"
          android:gravity="center"
          android:text="@string/yes"
          android:textColor="#0C76EE"
          android:textStyle="bold"
          android:padding="5dp"
          android:clickable="true"
          android:layout_margin="5dp" /&gt;
  
      &lt;View
          android:layout_width="1dp"
          android:layout_height="match_parent"
          android:background="@color/alarm_color"
          /&gt;
  
      &lt;TextView
          android:id="@+id/no"
          android:layout_width="0dp"
          android:layout_height="wrap_content"
          android:layout_weight="1"
          android:gravity="center"
          android:text="@string/no"
          android:textColor="#0C76EE"
          android:textStyle="bold"
          android:padding="5dp"
          android:clickable="true"
          android:layout_margin="5dp" /&gt;
  
      &lt;/LinearLayout&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>Any idea?</p>