No, there isn't any copying of data, and no editing as such in ListView.

The adapter has a method to return a view for a particular item position, and that's it. It's the responsibility of this method to make sure that the data is presented in consistent way.

If you are using ArrayAdapter, I'd recommend graduating to BaseAdapter. ArrayAdapter is like a children's bicycle with training wheels, great to start with, but easy to outgrow.

And as Mark already pointed out, your data items (whether you use ArrayAdapter or not) should have enough information to recreate the visual state in getView: in your case, store the rotation value there. Update the rotation value in the data item whenever it's changed by the user, so it's there next time getView is called for this particular item.

-- Kostya

10.07.2011 22:29, Simon Platten пишет:
Obviously I'm missing something, it seems to me that the list view doesn't work off the actual array but takes copies of the data when the getView is called, when these are edited the differences are lost when the item goes off view. I've tried modifying the getView to reference the array directly, but with little success.

--
Kostya Vasilyev

--
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

Reply via email to