title: Draw vertical dotted line
body: <p>I want to draw a vertical dotted line in xml, using <code>shape</code>. </p>
  
  <p>I used this example:</p>
  
  <pre><code>&lt;shape xmlns:android="http://schemas.android.com/apk/res/android"
     android:shape="line"&gt;
  
  &lt;size
  android:height="400dp"
  android:width="4dp"/&gt;
  
  &lt;stroke
          android:color="#000000"
          android:dashWidth="100dp"
          android:dashGap="10dp" /&gt;
  &lt;/shape&gt;
  </code></pre>
  
  <p>Then:</p>
  
  <pre><code>&lt;View android:id="@+id/vertical_line"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:background="@drawable/dotted_line"
        android:layout_marginLeft="27dp"/&gt;
  </code></pre>
  
  <p>But it doesn't work. How can I do it?</p>