[android-developers] how to remove an item from a listView and arrayAdapter
Hi,
I have a collection of items in an ArrayList. I add them to a
customer adapter as follows:
this.m_adapter = new MyAdapter(this, R.layout.myitem,
itemCart.m_items);
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. Can someone please explain how to do
this or point me to a tutorial where I can read up on this? Non-
sarcastic/non-condescending responses are greatly appreciated.
Thanks,
gb
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home