Scrollview に含まれる 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>