Android TableLayout does not scroll vertically
android, android-layout
Solution
put your `TableLayout` inside `ScrollView`
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/scrollView1"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<TableLayout
android:id="@+id/tableLayout1"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<TableRow
android:id="@+id/tableRow1"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
</TableRow>
</TableLayout>
</ScrollView>
Problem
Thanks in advance for any help. I am very new to Android. Here's my problem. I am using a TableLayout to display editable fields. There are about twenty rows to display. The rows overflow the screen on smaller devices. I need the View to allow the user to scroll up and down. What am I missing? Tried wrapping the TableLayout in a ScrollView, didn't work.