title: Put blackline border around ScrollView - Android
body: <p>My question is if there is a way to put a simple blackline border around a <code>ScrollView</code> so the user is aware exactly where the <code>ScrollView</code> starts, stops and how wide it is.  I cannot find any sort of XML or java code in the Android docs saying how to do this.  I know this has to be possible.</p>
  
  <p>Below is my XML code for the <code>ScrollView</code> I need to have a border.</p>
  
  <pre><code>&lt;LinearLayout
            .... /&gt;
  
  
      &lt;TextView
          ... /&gt;
  
  //BORDER STARTS HERE        
      &lt;ScrollView
          android:layout_width="fill_parent"
          android:layout_height="0dip"
          android:layout_weight="94.5"
          android:paddingBottom="5dp"
          android:fillViewport="true" &gt;
  
          &lt;LinearLayout
              ... &gt; 
  
              &lt;TextView
                  ... /&gt;
  
          &lt;/LinearLayout&gt;
      &lt;/ScrollView&gt;
  //BORDER ENDS HERE
  
      &lt;Button
          ... /&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p><strong>EDIT</strong></p>
  
  <p>I just added a <code>scrollviewborder.xml</code> with the following code as a background for the <code>ScrollView</code>.</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="rectangle"&gt;
      &lt;stroke
          android:width="2dp"
          android:color="#000000"/&gt;
  &lt;/shape&gt;
  </code></pre>
  
  <p>The below screenshot is what it produced:</p>
  
  <p><img src="https://i.stack.imgur.com/f7h75.png" alt="enter image description here"></p>
  
  <p>This is not quite what I wanted.  I want a thin blackline bordering around and not a black box.</p>