The mapping between the cursor and the UI is defined by the adapter.

CursorAdapter assumes a one to one mapping: one UI row for each cursor row.

If you need to skip or split data rows, implement your own adapter, possibly by delegating to a CursorAdapter. Make sure to return correct (adjusted) value from getCount, and account for row position adjustments in getView.

-- Kostya

20.10.2011 19:41, dara kok пишет:
Within one list item, I want to display 2 or 3 rows of data from the cursor, it's displayed as multiple column in a single list view row.

So with that requirement, I can use a gridView. But my trouble is for a certain row from the cursor, it may fill the space of 2 columns. In overall, the drawing space of a row from the cursor will vary. So I have to use a list view, and will need to skip a row if it's already displayed along other row in a list view item.

darakok
--
You received this message because you are subscribed to the Google
Groups "Android Developers" 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-developers?hl=en

--
Kostya Vasilyev

--
You received this message because you are subscribed to the Google
Groups "Android Developers" 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-developers?hl=en

Reply via email to