title: Android : Border only on corners
body: <p>In my android app, I need border only on four corners as shown in fig (white colored).</p>
  
  <p><img src="https://i.stack.imgur.com/6hiAF.png" alt="enter image description here"></p>
  
  <pre><code>    &lt;RelativeLayout
          android:layout_width="fill_parent"
          android:layout_height="0dip"
          android:layout_weight="6"&gt;
          &lt;VideoView
              android:id="@+id/video1"
              android:layout_width="fill_parent"
              android:layout_height="fill_parent"
              android:layout_gravity="center" /&gt;
          &lt;View
              android:layout_width="150dp"
              android:layout_height="150dp"
              android:layout_centerInParent="true"
              android:background="@drawable/cornerbg" /&gt;
      &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>cornerbg.xml</p>
  
  <pre><code>        &lt;?xml version="1.0" encoding="utf-8"?&gt;
          &lt;layer-list xmlns:android="http://schemas.android.com/apk/res/android" &gt;
  
          &lt;item&gt;
              &lt;shape android:shape="rectangle" &gt;
                  &lt;solid android:color="@color/transparent" /&gt;
                  &lt;stroke
                      android:width="1dp"
                      android:color="@color/btn_border"
                      android:dashWidth="50dp" // I tried this but not getting expected 
                      android:dashGap="60dp"/&gt;
  
              &lt;/shape&gt;
          &lt;/item&gt;
          &lt;/layer-list&gt;
  </code></pre>
  
  <p>How can I write xml for this?</p>
  
  <p>Please help,
  Thanks</p>