I have got something like this:
<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>
i would like to add some more rows, but only after some time(lets say 10 sec). I thought to make those rows invisible at first and then make them appear. But in that way my scrollView is not working as i want(i can scroll down even if nothing is below – since rows are invisible)
So i thought to make rows that i want to add in second file, load them in middle time and add them after tableRow1 in moment they have to appear. Unfortunately i have got no idea how to do that(i am talking about connecting 2 files, not creating second one in java) :/
There are two modes to hide a view:
INVISIBLE: This view is invisible, but it still takes up space for layout purposes.GONE: This view is invisible, and it doesn’t take any space for layout purposes.http://developer.android.com/reference/android/view/View.html#setVisibility(int)
I think
GONEwill help you.