Change object of a listview

0

I have listview populated by an Object, but I wanted to know if I have how to change the object, I was able to change the view corresponding to this Object, not% whole.

    
asked by anonymous 18.08.2014 / 03:06

1 answer

1

Create a method to change the item in the list, add the conditions to capture the specific item that you want to change. You need to go item by item in the list, use for to do so:

for (Object ob : listObj) { 
    if('vouAlterar'.equals(ob.getNome())) {
        ob.setNome = 'Alterei';
    }
}
    
22.08.2014 / 16:36