Mauro Valvano
- Forum posts: 1
Jul 19, 2013, 3:25:35 PM via Website
Jul 19, 2013 3:25:35 PM via Website
Hi!
My name is Mauro and i'm not a new programmer, but i have some difficultes to understand the listview's item work.
I'm using a view holder, and i know that list view reuse the view for re-render it. Now, if i want to access to a direct item's view instance, i think that i can't because it is the same instance.
But, when i use it, it works well and i don't know why. So, my questions are:
"The listview, clone the convertView? I have always the some view instance, only rendered different time in different positions, or it will create difference view instances?"
"If i want to change an image of a ImageView in a item, without using the adapter but accessing directly from a view, how i do it?"
Beacuse i think (i haven't tryed it yet) that if i change an imageView source of a item, it will change it to all other listview item, beacouse it is the same instance/reference!
I'm sorry for my bad english.
Thank you.
My name is Mauro and i'm not a new programmer, but i have some difficultes to understand the listview's item work.
I'm using a view holder, and i know that list view reuse the view for re-render it. Now, if i want to access to a direct item's view instance, i think that i can't because it is the same instance.
But, when i use it, it works well and i don't know why. So, my questions are:
"The listview, clone the convertView? I have always the some view instance, only rendered different time in different positions, or it will create difference view instances?"
"If i want to change an image of a ImageView in a item, without using the adapter but accessing directly from a view, how i do it?"
Beacuse i think (i haven't tryed it yet) that if i change an imageView source of a item, it will change it to all other listview item, beacouse it is the same instance/reference!
I'm sorry for my bad english.
Thank you.
Recommended editorial content
With your consent, external content is loaded here.
By clicking on the button above, you agree that external content may be displayed to you. Personal data may be transmitted to third-party providers in the process. You can find more information about this in our Privacy Policy.