I'm trying to do this in such a way that I don't have to replicate
code...what ideally I would like is when I press either of the rotate
buttons, it invalidates the image causing it to be re-rendered and rotated,
so far the only way I've been able to get the rotation to work is to get the
imageview in my event listener, rotate the bitmap then put it back in the
imageview.

I like to understand what is happening behind the scenes and I must admit
I'm not quite sure what methods are available to me, I'll take a look at the
links provided by Mark.

Thank you.

On Sun, Jul 10, 2011 at 7:43 PM, Kostya Vasilyev <[email protected]> wrote:

> 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 
> android-developers@**googlegroups.com<[email protected]>
> To unsubscribe from this group, send email to
> android-developers+**[email protected]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/**group/android-developers?hl=en<http://groups.google.com/group/android-developers?hl=en>
>



-- 
Regards,
Sy

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