title: How to create a border on one edge of a view?
body: <p>I have found that to add borders around views I can use the following code as a background for the view:</p>
  
  <pre><code>&lt;shape xmlns:android="http://schemas.android.com/apk/res/android"&gt;
  &lt;solid android:color="#FFFFFF" /&gt;
  &lt;stroke android:width="1dp" android:color="#999999" /&gt;
  &lt;padding android:left="1dp" android:top="1dp" android:right="1dp"
      android:bottom="1dp" /&gt;
  &lt;/shape&gt;
  </code></pre>
  
  <p>But what if I want a border just for bottom, or top or right or left? I tried the following:</p>
  
  <pre><code>&lt;shape
    xmlns:android="http://schemas.android.com/apk/res/android"
      android:shape="line"&gt;
  &lt;stroke android:color="#000"/&gt;
  &lt;/shape&gt;
  </code></pre>
  
  <p>but when I set it as background </p>
  
  <pre><code>android:background="@drawable/my_border"
  </code></pre>
  
  <p>it draws the line at the middle of the view, so I have a strike-through effect. Is there any way I can draw this line at the bottom or at the top or make it vertical?</p>
  
  <p>In WPF we have a relative coordinates for shapes, so I can offset lines as needed. Is there something similar on Android? If we don't have borders, at least we should have good line shape drawing tools, so we can draw borders as needed. Do Android developers plan to do something about it?</p>