title: How to make objects be in the bottom of a scrollview
body: <p>I have a scrollview with a root view which is Linear Layout</p>
  
  <p>at the bottom of the LinearLayout there is a button</p>
  
  <p>I want it to scroll up with the scroll view, but when the view first appears on the screen
  I want the button to be at the bottom of the view and it's not</p>
  
  <pre><code>&lt;ScrollView
      android:layout_width="match_parent"
      android:layout_height="match_parent" &gt;
  
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_marginLeft="@dimen/default_side_margin"
          android:layout_marginRight="@dimen/default_side_margin"
          android:orientation="vertical" &gt;
  
  
          &lt;include
              android:id="@+id/details"
              layout="@layout/layout_details"
               /&gt;
  
          &lt;include
              android:layout_gravity="bottom"
              layout="@layout/layout_btn_next" /&gt;
      &lt;/LinearLayout&gt;
  &lt;/ScrollView&gt;
  </code></pre>
  
  <p>the first included layout takes up only about half the screen</p>
  
  <p>I want the button to scroll up with the layout , but be far enough from layout details to be on the bottom of the screen</p>