views:

176

answers:

3

I everyone. I'm very new to Android development and I want to develop an application that uses a local database. I want to show the results of queries in a DataGrid like object.

The UI would be somewhat similar to this.

http://i5.photobucket.com/albums/y163/marco2530/img1.jpg

Is it possible to develop this kind of UI in Android? If so how can I accomplish this? Are there good tutorials I can follow?

Thank you very much.

Marco Sousa

A: 

There is nothing strictly identical to a DataGrid. There is GridView, which gives you rows and columns, but that's designed more as a two-dimensional ListView. There is TableLayout, which gives you rows and columns, but it is not designed to handle an arbitrary number of rows.

CommonsWare
A: 

ListView is probably what you want. You have complete control over the presentation of each row through the ListAdapter that your app supplies, which you can use to present each row's data as a series of fixed width columns. Helpers such as CursorAdapter will give you a starting point for presenting data from a local database.

adamp
A: 

There's a quite nice overview of available views including screen-shots and code examples in the tutorial section on the android developers site - this might help you in choosing the right layout: Hello Views

Martin