Matt wrote: > I created a ListView from an array of strings. I also set an > OnItemLongClickListener. Inside that listener I actually want to > remove the list item that has been long-clicked on from the list, but > I don't know how. Is that even possible?
You don't remove it from the list. You remove it from the data source underlying the list. -- ArrayAdapter? Remove it straight from the adapter. -- CursorAdapter? Remove it from the database or content provider, then requery(). -- Other adapter? Ummmm...it should have similar stuff. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books.html --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" 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-beginners?hl=en -~----------~----~----~----~------~----~------~--~---

