title: Android RelativeLayout : how to alignParentBottom when wrapped in a ScrollView?
body: <p>The problem I am having seems to be that if I have a view (e.g. myButton) inside a RelativeLayout set to alignParentBottom - (as per the code below) - and then wrap the RelativeLayout with a scrollview (necessary so the content will be viewable on smaller screens or when orientation changes to landscape) - then, when the parent bottom is NOT visible (for example when changed to landscape orientation) myButton is displayed at the TOP of the page - NOT the bottom.</p>
  
  <p>How can you align a view to the bottom of the screen and have it remain at the bottom even if the bottom is below the scroll?</p>
  
  <pre><code>&lt;ScrollView
  android:id="@+id/mainScrollView"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:fillViewport="true"&gt;
  
  
  
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
   android:id="@+id/topLayout"
   android:layout_width="fill_parent"
   android:layout_height="fill_parent"&gt;
  
  
  
  ... lots of views and stuff
  
  
  &lt;Button android:layout_alignParentBottom="true" 
  android:id="@+id/myButton"  
  android:text="Click Me" /&gt;
  
  &lt;/RelativeLayout&gt;
  &lt;/ScrollView&gt;   
  </code></pre>