我有一個包含在ScrollView中的TableLayout。 TableLayout在運行期間以編程方式填充。該表包含航班抵達信息。一個TableLayout已經被填充,我想能夠向下滾動到當前時間段。滾動到TableLayout中的一行編程方式
如果我知道我想滾動到表中第40行的第100行,我該怎麼做?
這是佈局的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>
的[可能的複製有沒有一種方法以編程方式滾動滾動視圖到特定的編輯文本?](http://stackoverflow.com/questions/6831671/is-there-a-way-to-programmatically-scroll-a-scroll-view-to-a-specific-edit-文字) –