How is everything going? In my application i had a TableLayout in which i continuously add tablerows programmatically. After adding a lot of rows when i try to scroll down, i cannot do so. I thought may be it's my fault. So i made a simple xml with a lot of rows
Here is my xml file, in my application i just setContentView this layout.
Using xml Syntax Highlighting
- <?xml version="1.0" encoding="utf-8"?>
- <TableLayout
- id="@+id/widget26"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:background="#ffffffff"
- xmlns:android="http://schemas.android.com/apk/res/android"
- android:orientation="vertical"
- android:scrollbars="vertical"
- >
- <TableRow
- id="@+id/widget28"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:background="#ffffffff"
- xmlns:android="http://schemas.android.com/apk/res/android"
- android:orientation="horizontal"
- >
- <Button
- id="@+id/widget51"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Button"
- >
- </Button>
- </TableRow>
- <TableRow
- id="@+id/widget29"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:background="#ffffffff"
- xmlns:android="http://schemas.android.com/apk/res/android"
- android:orientation="horizontal"
- >
- <Button
- id="@+id/widget52"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Button"
- >
- </Button>
- </TableRow>
- <TableRow
- id="@+id/widget30"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:background="#ffffffff"
- xmlns:android="http://schemas.android.com/apk/res/android"
- android:orientation="horizontal"
- >
- <Button
- id="@+id/widget53"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Button"
- >
- </Button>
- </TableRow>
- <TableRow
- id="@+id/widget31"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:background="#ffffffff"
- xmlns:android="http://schemas.android.com/apk/res/android"
- android:orientation="horizontal"
- >
- <Button
- id="@+id/widget54"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Button"
- >
- </Button>
- </TableRow>
- <TableRow
- id="@+id/widget32"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:background="#ffffffff"
- xmlns:android="http://schemas.android.com/apk/res/android"
- android:orientation="horizontal"
- >
- <Button
- id="@+id/widget55"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Button"
- >
- </Button>
- </TableRow>
- <TableRow
- id="@+id/widget33"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:background="#ffffffff"
- xmlns:android="http://schemas.android.com/apk/res/android"
- android:orientation="horizontal"
- >
- <Button
- id="@+id/widget56"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Button"
- >
- </Button>
- </TableRow>
- <TableRow
- id="@+id/widget34"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:background="#ffffffff"
- xmlns:android="http://schemas.android.com/apk/res/android"
- android:orientation="horizontal"
- >
- <Button
- id="@+id/widget57"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Button"
- >
- </Button>
- </TableRow>
- <TableRow
- id="@+id/widget35"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:background="#ffffffff"
- xmlns:android="http://schemas.android.com/apk/res/android"
- android:orientation="horizontal"
- >
- <Button
- id="@+id/widget58"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Button"
- >
- </Button>
- </TableRow>
- <TableRow
- id="@+id/widget36"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:background="#ffffffff"
- xmlns:android="http://schemas.android.com/apk/res/android"
- android:orientation="horizontal"
- >
- <Button
- id="@+id/widget59"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Button"
- >
- </Button>
- </TableRow>
- <TableRow
- id="@+id/widget37"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:background="#ffffffff"
- xmlns:android="http://schemas.android.com/apk/res/android"
- android:orientation="horizontal"
- >
- <Button
- id="@+id/widget60"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Button"
- >
- </Button>
- </TableRow>
- <TableRow
- id="@+id/widget38"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:background="#ffffffff"
- xmlns:android="http://schemas.android.com/apk/res/android"
- android:orientation="horizontal"
- >
- <Button
- id="@+id/widget61"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Button"
- >
- </Button>
- </TableRow>
- <TableRow
- id="@+id/widget40"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:background="#ffffffff"
- xmlns:android="http://schemas.android.com/apk/res/android"
- android:orientation="horizontal"
- >
- <EditText
- id="@+id/widget62"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="EditText"
- >
- </EditText>
- </TableRow>
- <TableRow
- id="@+id/widget41"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:background="#ffffffff"
- xmlns:android="http://schemas.android.com/apk/res/android"
- android:orientation="horizontal"
- >
- <Button
- id="@+id/widget63"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Button"
- >
- </Button>
- </TableRow>
- <TableRow
- id="@+id/widget42"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:background="#ffffffff"
- xmlns:android="http://schemas.android.com/apk/res/android"
- android:orientation="horizontal"
- >
- <EditText
- id="@+id/widget64"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="EditText"
- >
- </EditText>
- </TableRow>
- <TableRow
- id="@+id/widget43"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:background="#ffffffff"
- xmlns:android="http://schemas.android.com/apk/res/android"
- android:orientation="horizontal"
- >
- <EditText
- id="@+id/widget65"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="EditText"
- >
- </EditText>
- </TableRow>
- <TableRow
- id="@+id/widget44"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:background="#ffffffff"
- xmlns:android="http://schemas.android.com/apk/res/android"
- android:orientation="horizontal"
- >
- <Button
- id="@+id/widget66"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Button"
- >
- </Button>
- </TableRow>
- <TableRow
- id="@+id/widget45"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:background="#ffffffff"
- xmlns:android="http://schemas.android.com/apk/res/android"
- android:orientation="horizontal"
- >
- <EditText
- id="@+id/widget68"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="EditText"
- >
- </EditText>
- <EditText
- id="@+id/widget69"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="EditText"
- >
- </EditText>
- </TableRow>
- <TableRow
- id="@+id/widget49"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:background="#ffffffff"
- xmlns:android="http://schemas.android.com/apk/res/android"
- android:orientation="horizontal"
- >
- <EditText
- id="@+id/widget69"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="EditText"
- >
- </EditText>
- </TableRow>
- <TableRow
- id="@+id/widget48"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:background="#ffffffff"
- xmlns:android="http://schemas.android.com/apk/res/android"
- android:orientation="horizontal"
- >
- <EditText
- id="@+id/widget69"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="EditText"
- >
- </EditText>
- </TableRow>
- <TableRow
- id="@+id/widget47"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:background="#ffffffff"
- xmlns:android="http://schemas.android.com/apk/res/android"
- android:orientation="horizontal"
- >
- <EditText
- id="@+id/widget69"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="EditText"
- >
- </EditText>
- </TableRow>
- <TableRow
- id="@+id/widget50"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:background="#ffffffff"
- xmlns:android="http://schemas.android.com/apk/res/android"
- android:orientation="horizontal"
- >
- </TableRow>
- <TableRow
- id="@+id/widget46"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:background="#ffffffff"
- xmlns:android="http://schemas.android.com/apk/res/android"
- android:orientation="horizontal"
- >
- </TableRow>
- </TableLayout>
Parsed in 0.032 seconds, using GeSHi 1.0.8.4
Does anyone know the solution???
Please help me out
Regards
Shimul




