1

I am using universal image loader for showing Image on Imageview

First i load three Images on four Imageview, Loading sucessfully

          imageLoader.displayImage(imageUrls[0], holder.thumbImage1, options);
         imageLoader.displayImage(imageUrls[0], holder.imgProperty, options);
         imageLoader.displayImage(imageUrls[1], holder.thumbImage2, options);
         imageLoader.displayImage(imageUrls[2], holder.thumbImage3, options);

after That i click on holder.thumbImage1 and want to changed image on holder.imgProperty

 holder.thumbImage2.setOnClickListener(new OnClickListener() {

            @Override
            public void onClick(View v) {
                // TODO Auto-generated method stub
                imageLoader.displayImage(url1, holder.imgProperty, options);
            }
        });

but image is not changing and also i am not getting any error

Please help me how i can fix this issue.

Thanks In Advance

user3809459
  • 61
  • 1
  • 1
  • 5
  • You're saying you want to click on thumbImage1, but your `clickListener` is on thumbImage2. Is it just an error here? – NSimon Apr 19 '16 at 16:44

1 Answers1

0

Try to call notifyDataSetChanged :

holder.thumbImage2.setOnClickListener(new OnClickListener() {

           @Override
           public void onClick(View v) {
               // TODO Auto-generated method stub
               imageLoader.displayImage(url1, holder.imgProperty, options);
               notifyDataSetChanged();
           }
       });
}
Artem Mostyaev
  • 3,874
  • 10
  • 53
  • 60
Blaze Tama
  • 10,828
  • 13
  • 69
  • 129