title: How to add vertical scroll bars to view in android?
body: <p>This is my layout:</p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:paddingBottom="@dimen/activity_vertical_margin"
      android:paddingLeft="@dimen/activity_horizontal_margin"
      android:paddingRight="@dimen/activity_horizontal_margin"
      android:paddingTop="@dimen/activity_vertical_margin"
      tools:context=".ProfileActivity" &gt;
  
      &lt;ImageView
          android:id="@+id/picture_avatar"
          android:layout_width="90dp" 
          android:layout_height="110dp"
          android:background="#bdbdbd"
          android:src="@drawable/no_avatar" /&gt;
  
      &lt;TextView
          android:id="@+id/textview_status"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_marginLeft="5dp"
          android:layout_alignTop="@+id/picture_avatar"
          android:layout_toRightOf="@+id/picture_avatar"
          android:text="" /&gt;
  
      &lt;TextView
          android:id="@+id/textview_fullname"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_below="@+id/picture_avatar"
          android:textSize="30sp"
          android:text="" /&gt;
  
  
  
      &lt;TextView
          android:id="@+id/textview_email"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_below="@+id/textview_fullname"
          android:autoLink="email"
          android:text="" /&gt;
  
      &lt;TextView
          android:id="@+id/textview_phone"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_below="@+id/textview_email"
          android:autoLink="phone" 
          android:text="" /&gt;
  
      &lt;TextView
          android:id="@+id/textview_website"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_below="@+id/textview_phone"
          android:autoLink="web"
          android:text="" /&gt;
  
      &lt;TextView
          android:id="@+id/textview_bio"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_marginTop="7dp"
          android:layout_marginBottom="7dp"
          android:layout_below="@+id/textview_website"
          android:text="" /&gt;
  
      &lt;TextView
          android:id="@+id/textview_lastactive"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_below="@+id/textview_bio"
          android:text="" /&gt;
  
      &lt;TextView
          android:id="@+id/textview_datejoined"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_below="@+id/textview_lastactive"
          android:text="" /&gt;
  
      &lt;TextView
          android:id="@+id/textview_dateleft"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_below="@+id/textview_datejoined"
          android:text="" /&gt;
  
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_alignParentBottom="true"
          android:layout_centerHorizontal="true"
          android:orientation="horizontal" &gt;
  
          &lt;Button
              android:id="@+id/button_logout"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:onClick="CloseActivity"
              android:text="@+string/back" /&gt;
  
          &lt;Button
              android:id="@+id/button_exit"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:onClick="GoToEditProfile"
              android:text="@+string/edit" /&gt;
  
      &lt;/LinearLayout&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>How can I add vertical scroll bars, that only show if the content is too long?</p>
  
  <p>I tried wrapping it with </p>
  
  <pre><code>&lt;ScrollView xmlns:android="http://schemas.android.com/apk/res/android" 
          android:layout_width="fill_parent" 
          android:layout_height="fill_parent" 
          android:overScrollMode="always" 
          android:isScrollContainer="true" 
          android:scrollbarAlwaysDrawVerticalTrack="true" 
          android:scrollbarStyle="outsideInset" 
          android:scrollbars="vertical"&gt;
  </code></pre>
  
  <p>But the bottom textviews and buttons were overlapping...</p>
  
  <p>Does anyone know how to do this?</p>