I have a LinearLayout with a ScrollView inside and a checkbox underneath the scrollview. Whenever i put alot of text in the scrollview, it will expand through the whole screen and kick out the bottom checkbox view. How do i prevent that from happening?
Basically, i want the checkbox to always be right underneath the scrollview. I also want the scrollview to shrink and expand depending on its text. When theres alot of text inside, it should expand to the point where the checkbox is still visible at the bottom of the screen.
It should look like this:

Where the filled ScrollView should have a scroller if the text is too much, rather than kicking out the checkbox from the screen
Help!
My layout looks like:
<LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > <ScrollView android:layout_width="wrap_content" android:layout_height="wrap_content"> <!-- TextView inside ---> </ScrollView> <RelativeLayout android:layout_width="fill_parent" android:layout_height="80dp" android:gravity="top" android:orientation="horizontal" > <!-- CheckBox inside ---> </RelativeLayout> </LinearLayout> Dont worry about the syntax, or all the stuff that are inside, I wrote this quick because the code inside is really long and unnecessary!