Having a bit of an issue attempting to get some buttons to appear beneath a srcollview in an app that I'm putting together.
The bottom LinearLayout with the buttons doesn't appear on screen at all, it will no doubt be something obvious but I'm stumped at the moment. I thought that by using the RelativeLayout as the parent for the main page and then using the android:layout_below attribute I would be able to position them fairly easily?
<?xml version="1.0" encoding="utf-8"?>
<!-- ViewFlipper -->
<ViewFlipper
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/ViewFlipper01"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<!-- Page 1 (Splash) -->
<LinearLayout
android:id="@+id/splashPage"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<TextView
android:id="@+id/splash"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text="Display Splash Image"/>
</LinearLayout>
<!-- Page 2 (Main) -->
<RelativeLayout
android:id="@+id/mainPage"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical">
<LinearLayout
android:id="@+id/header"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_below="@+id/mainPage"
>
<TextView
android:id="@+id/date"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:gravity="center_horizontal" />
</LinearLayout>
<ScrollView
android:id="@+id/scrollView"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/header"
>
<TableLayout
android:id="@+id/tableHolder"
android:layout_width="fill_parent"
android:layout_height="wrap_content" >
<!-- Dynamic TextViews Will Go In Here -->
</TableLayout>
</ScrollView>
<LinearLayout
android:id="@+id/buttonHolder"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_below="@+id/scrollView"
>
<Button
android:id="@+id/previous"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Previous" />
<Button
android:id="@+id/next"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Next" />
</LinearLayout>
</RelativeLayout>
</ViewFlipper>
<!-- End of ViewFlipper -->