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
Post a Comment