android - Getting issues with ImageView invalidate in ListView -


i have customised list view in have taken imageview , textviews roeitems. in adapter each rowitem download image server , in handler update imageview downloaded image , invalidate imageview. below code handler -

handler handler = new handler() {     @override     public void handlemessage(message msg) {         imageview imgfileicon = (imageview) msg.obj;         imgfileicon.setimagedrawable("my image path");         imgfileicon.invalidate();     } }; 

after doing imageview gets updated each row item, when scroll down list , come top images of imageview gets replaced each other. means imageview randomly changes images. not getting behaviour happening first time. can tell me if has faced same problem solution.

thanks in advance.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -