title: Vertical line using XML drawable
body: <p>I'm trying to figure out how to define a vertical line (1dp thick) to be used as a drawable.</p>
  
  <p>To make a horizontal one, it's pretty straightforward:</p>
  
  <pre><code>&lt;shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="line"&gt;
      &lt;stroke android:width="1dp" android:color="#0000FF"/&gt;
      &lt;size android:height="50dp" /&gt;     
  &lt;/shape&gt;
  </code></pre>
  
  <p>The question is, how to make this line vertical?</p>
  
  <p>Yes, there are workarounds, such as drawing a rectangle shape 1px thick, but that complicates the drawable XML, if it consists of multiple <code>&lt;item&gt;</code> elements.</p>
  
  <p>Anyone had any chance with this?</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>Case is still unsolved. However,
  For anyone on a Android documentation crusade - you might find this useful:
  <strong><a href="http://idunnolol.com/android/drawables.html" rel="noreferrer">Missing Android XML Manual</a></strong> </p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>I found no other way other than the one that I marked as correct. It does the trick though feels a bit "heavy", thus if you happen to know the answer don't forget to share ;)</p>