I have a XML Layout as follows. I have a TExt View followed by a number of check boxes and then a button. I have enclosed all the check boxes in a Linear Layout and set up a scroll view for that.`I cant view my button after scrolling down, WHat should I do ?
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<TextView />
<ScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fillViewport="true"
android:orientation="vertical" >
<LinearLayout>
<CheckBox />
<CheckBox />
<CheckBox/>
<CheckBox/>
<CheckBox/>
<CheckBox/>
<CheckBox/>
<CheckBox/>
<CheckBox />
<CheckBox/>
<CheckBox />
</LinearLayout>
</ScrollView>
<Button
</Button>
</LinearLayout>
There is a condition for scroll view
there should be only one childview for scroll view
the child view may contains may sub child views
if you want to show the button you have use view wight concept