【发布时间】:2013-09-01 05:42:48
【问题描述】:
我有一个包含在滚动视图中的 TableLayout。 TableLayout 在运行时以编程方式填充。该表包含航班到达信息。 TableLayout 已填充之一,我希望能够向下滚动到当前时间段。
如果我知道我想滚动到表中 100 行中的第 40 行,我该怎么做?
这是布局的 XML。提前致谢。
<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>
【问题讨论】:
标签: android scroll tablelayout