The question was anwsered here: http://stackoverflow.com/questions/4698386/android-how-to-remove-an-item-from-a-listview-and-arrayadapter
On 15 January 2011 08:24, TreKing <[email protected]> wrote: > On Sat, Jan 15, 2011 at 12:48 AM, gonzobrains <[email protected]>wrote: > >> I have a delete button for each of these items in my list, but I am not >> sure how to connect the delete button's onClick() with the original item in >> the ArrayList. >> > > You have a getView() method where you build these custom items, I assume. > You could set the Tag property on each button with the index it's for, then > when you click the button just pull it out and use that to index. > > >> Non- sarcastic/non-condescending responses are greatly appreciated. >> > > You're no fun. > > > ------------------------------------------------------------------------------------------------- > TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago > transit tracking app for Android-powered devices > > > -- > 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]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- MLD -- 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

