• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps TableLayout in ScrollView

Pete Kane

Lurker
Hi all, I have a TableLayout nested within a ScrollView, I add rows to the table dynamically when the application starts, the problem I have is I'm only seeing a third of my tables rows e.g. if I have 30 rows I can only scroll down to row 10 - my layout is as shown below - any ideas ?

HTML:
 <ScrollView
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:fillViewport="true"
      >
     >
        <LinearLayout
            android:layout_width="fill_parent"
            android:layout_height="fill_parent">

            <TableLayout
                android:layout_width="fill_parent"
                android:layout_height="fill_parent"
                android:id="@+id/tablelayoutmain"
                xmlns:android="http://schemas.android.com/apk/res/android"
                android:layout_marginTop="20dp"
                android:gravity="fill">
            </TableLayout>
        </LinearLayout>
    </ScrollView>
 
Back
Top Bottom