How to number items in a list view?
问题 I was wondering how to set a number starting from 1 to n for my listview items. The column is not included in my sqllite database. I would like to use a custom simple cursor adapter that has a textview called labelNumber and set the number to 1 on the first call to newView and bindview and increment the value after each call. Is this the right approach or is there a better way. Obviously this is to help with the navigation of the list view to know your current position? Update- code is