私の Android アプリケーションではTableLayout
、実行時にロードする必要があります。を返す SQLite データベースからデータを取得するメソッドを既に実装していますArrayList
。私がやりたいことは、これらの取得したデータTableLayout
を実行時にロードする方法です。そのための別のメソッドを書く必要があります。私のxmlファイルでは、TableLayout
次のようなものをすでに定義しています。この にテーブル データをロードする必要がありますTableLayout
。どうすればこれを行うことができるかを説明してくれるほど親切な人がいれば、とてもありがたいです。
<ScrollView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:scrollbarSize="5dp"
android:scrollbars="vertical" >
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content" >
<HorizontalScrollView
android:layout_width="fill_parent"
android:layout_height="wrap_content" >
<TableLayout
android:id="@+id/tblPersons"
android:layout_width="fill_parent"
android:layout_height="match_parent" >
</TableLayout>
</HorizontalScrollView>
</LinearLayout>
</ScrollView>
事前にサンクス