Please take the table in DB for example:

ID

Player_Name

Score

1

Jim

10

2

Bill

20

3

Bob

15

4

Mike

9

In the ListActivity, I want it shows like:

Rank

Player_Name

Score

1

Bill

20

2

Bob

15

3
Jim

10

4

Mike

9


On Thu, Apr 7, 2011 at 2:48 PM, [email protected] <
[email protected]> wrote:

> In my game, a table is created with 3 columns, _id,  player_name,
> score.
> It is easy to get the name and score, order by score desc, then get
> anther value  "rank".
> If I want to display the "rank" number in the list activity (which is
> not in the cursor, but the sequence of the records), is it possible to
> use the CursorAdapter to fulfill it?
>
> In my current design, I have to use the BaseAdapter and get all data
> out of the cursor and set them in a list, with the new "rank" column.
> It is possible, but I don't think it is a good idea.

-- 
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