Suppose I got a list of ImageView and TextView with Linear Line. Now I'm using simple array adapter extension which receives string [] [] as an item which is an array of double strings (each entry has a string [2] where the first string image For a Yuri and the second one is text, I override the getView to display the image and the text, definitely see :-) Although because image loading can be slower than resources, I'm doing it in an async function, that means I have a default image load and I use it: startLoading (this is my method) which ImageView and Uri have to be pressed and once the image is ready, it keeps it in the image view.
However, sometimes because it is a list, if the image is not yet full and I am in the middle of the process, and this happens when the image I am loading is now I am unable to see.
Since the ideas have been recycled, I can not see that the image view is visible, because it can be visible, but with a different drauble. Is there a way for me to know at some point that my line is illegal and is not visible? Is there any easy way or shell to start with flags and tag patterns and stuff, to know that my line is no longer valid?
What I do is based on how ListView sees it.
As there is a limited set of views actually used by ListView and that our adapters can be passed through the ConvertView logic of the GetView () method, I have the following Has been implemented:
- I have a Linkedist class member where I keep uris to load.
- Before returning the item view in GetView (), my adapter places the urine in the item in the view set.
- When I reuse a convertview, before I reuse its content, I get Yuri, it was previously associated with using View.getTag () and pending Yuri remove the element related to the linked list.
Comments
Post a Comment