Vignesh,

Put the TableView inside a ScrollView:

<ScrollView>
    <TableView>

        <TableRow>
            <TextView />
            <TextView />
            <TextView />
        </TableRow>

    </TableView>
</ScrollView>

Using TextViews to represent the cells isn't particularly complicated.
If you are building a table with a large number of rows/columns then
you could add them programmatically instead of packing them all in the
XML file...


Regards,

Sean

On Thu, Jun 4, 2009 at 9:09 AM, Vignesh<[email protected]> wrote:
> Hi,
>
> I have a requirement to display a table on the screen after reading them
> from a database.
>
> The layout must have scrollbars (both vertical and horizontal, because there
> can be plenty number of rows and columns).   Can someone suggest the
> widgets/layouts/views that I have to use?
>
> I tried using TableLayout, but it doesn't come with scrollbars.  Using
> Textview for each column gets complicated.
>
> From the document I infer adapters and TableLayout can be of help, but not
> sure how.
>
> Kindly help.
>
> -vignesh
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to