title: Creating horizontal and vertical dotted lines in android
body: <p>I want to draw horizontal and vertical dotted lines in android using shapes.</p>
  
  <p>I want to draw like this </p>
  
  <p><img src="https://i.stack.imgur.com/GPhoK.png" alt="enter image description here"></p>
  
  <p>For Horizontal line   </p>
  
  <pre><code>&lt;shape xmlns:android="http://schemas.android.com/apk/res/android"
      android:shape="line" &gt;
  
      &lt;stroke
          android:dashGap="6px"
          android:dashWidth="6px"
          android:color="#C7B299" /&gt;
  
  &lt;/shape&gt;
  </code></pre>
  
  <p>For vertical line </p>
  
  <pre><code>&lt;shape xmlns:android="http://schemas.android.com/apk/res/android"
      android:shape="line" &gt;
  &lt;size
       android:height="400dp"/&gt;
      &lt;stroke
          android:dashGap="6px"
          android:dashWidth="6px"
          android:color="#C7B299" /&gt;
  
  &lt;/shape&gt;
  </code></pre>
  
  <p>But vertical dotted line not displaying my output shows like this</p>
  
  <p><img src="https://i.stack.imgur.com/1etHr.png" alt="enter image description here"></p>
  
  <p>How to draw vertical line.</p>