ListAdapter to modify the datasource (which is an arraylist)
Posted
by dusker
on Stack Overflow
See other posts from Stack Overflow
or by dusker
Published on 2010-04-29T16:38:00Z
Indexed on
2010/04/29
16:57 UTC
Read the original article
Hit count: 431
Hi Everyone, here's a problem that i've run into lately: I have a listview with a custom adapter class, the adapter takes in a listview and populates the listview with elements from it. Now, i'd like to have a button on each row of a listview to remove the item from it. How should i approach this problem? Is there a way to remotely trigger a method in the activity class and call notifydatachanged() method on the adapter to refresh the listview?
thanks in advance for your help and some code snippets if possible best regards peter
© Stack Overflow or respective owner