[android-developers] Re: how to remove an item from a listView and arrayAdapter

2011-01-15 Thread gonzobrains
Thanks for the answer. I had a feeling the Tag property was involved somehow, but what's the right way to use it? In the getView() method can I do something like this: deleteButton.setTag(position); where position is the int passed into getView()? And then use that in the delete button's

Re: [android-developers] Re: how to remove an item from a listView and arrayAdapter

2011-01-15 Thread TreKing
On Sat, Jan 15, 2011 at 2:07 PM, gonzobrains gonzobra...@gmail.com wrote: I had a feeling the Tag property was involved somehow, but what's the right way to use it? The right way is dependent on your use case. It's there specifically as a convenience for you to attach arbitrary data to your

[android-developers] Re: how to remove an item from a listView and arrayAdapter

2011-01-15 Thread Doug
On Jan 14, 11:24 pm, TreKing treking...@gmail.com wrote: On Sat, Jan 15, 2011 at 12:48 AM, gonzobrains gonzobra...@gmail.com 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