Hello all, I have a question about ListView behaviour when user is in the touch mode.
I have an application which has a list of items (stored in the database, thus I use SimpleCursorAdapter), and user can add new, edit and delete existing items to/from the list. I want to implement following behaviour: - when the user adds an item and returns (from the form screen) to the list screen newly created item should be selected in the list; - when the user edits an item and returns to the list, the item that was edited should be selected in the list; - when the user deletes an item, the next list item should be displayed (or last but one when the last item is deleted). So after the operation is performed I'm trying to set proper selection in the list to make the item that has been added or edited visible (and selected). Things works pretty good when I do this with buttons (emulator+keyboard, or do all operations with trackball on my G1), but when I do all operations touching the screen I can not make last added/ edited item selected. I know that selection is not applicable in the touch mode, but I want to have this item at least visible (and when user moves track ball next time, this item will be selected). Is there any way to do that? I investigated Contacts application (on my G1, and friend's Hero) - they don't do that (in both touch and non-touch modes). If I see contacts from A to C on the screen and add a new contact that starts on M, then after returning to the list I still see contacts from A to C, but not the contact I've just added. Not much intuitive, eh? -- 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

