
I know that ScrollView can have only one Child but in my case I need to have 2 TableLayout That use the same scroll. I did tried using LayoutView wrap 2 TableLayout inside like below sample… but it show only the view in the first TableLayout
<ScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TableLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
//...
</TableLayout>
<TableLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
//...
</TableLayout>
</LinearLayout>
</ScrollView>
It looks like you want a vertically scrolling list. Wrapping the two tables should work but LinearLayout defaults to horizontal orientation. So add
android:orientation="vertical"to the wrapping LinearLayout