I have a TableLayout contained in a Scrollview. The TableLayout is populated programatically during runtime. The table contains flight arrival information. One the TableLayout has been populated, I want to be able to scroll down to the current time period.
If I know that I want to scroll to row number 40 of 100 in the table, how can I do this?
Here is the XML of the layout. Thanks in advance.
<LinearLayout
android1:id="@+id/LinearLayout20"
android1:layout_width="fill_parent"
android1:layout_weight="1"
android:orientation="vertical"
android1:background="#000000" android:layout_height="10000dp" android:measureWithLargestChild="true">
<ScrollView
android1:id="@+id/scrollView1"
android1:layout_width="match_parent"
android1:layout_height="wrap_content">
<TableLayout
android1:id="@+id/arrivalstable"
android1:layout_width="wrap_content"
android1:layout_height="wrap_content">
</TableLayout>
</ScrollView>
</LinearLayout>