私はこのようなものを持っています:
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<TableLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<TableRow
android:id="@+id/tableRow1"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<TextView
android:id="@+id/chooseBirthDateText"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="25dp"
style="@style/mediumText"
android:gravity="center_horizontal"
android:text="@string/choose_birth_date" />
</TableRow>
</TableLayout>
</ScrollView>
さらに行を追加したいのですが、しばらくしてから(10秒としましょう)。最初にそれらの行を非表示にしてから、表示することを考えました。しかし、そのようにすると、スクロールビューが思い通りに機能しません(下に何もなくても下にスクロールできます-行が見えないため)
だから私は2番目のファイルに追加したい行を作成し、それらを途中でロードし、表示されなければならない瞬間にtableRow1の後に追加することを考えました。残念ながら、私はそれを行う方法がわかりません(Javaで2番目のファイルを作成するのではなく、2つのファイルを接続することについて話している):/