title: Dotted line XML in Android
body: <p>I am working on an Android application in which I want to use dotted line XML as a divider in my layout. For this I have used different drawables for this but instead to make a dashed dotted line, it is making a line.</p>
  
  <p>My drawable is given below:</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="line"&gt;
      &lt;stroke
          android:color="#FF404040"
          android:width="1dp"
          android:dashGap="3dp"
          android:dashWidth="1dp"
      /&gt;
      &lt;size
          android:height="3dp"
      /&gt;
  &lt;/shape&gt;
  </code></pre>