androidimageviewlazy-loadingandroid-imageviewandroid-lazyloading

Changing Image on Image View on click


change image on image view when click on next and prev button and image is coming from url.

i have try to change image from below method but this is not changing image.

  imageLoader.displayImage(img[0], imgProperty);

imgProperty is a imageview and img[0] having a url and displayImage is the method of Lazy loading Imagloader class.

Please help me how can change Image view image on click.

enter image description here


Solution

  • First, make sure img[0] refer to the image's URL.

    And use imageLoader.displayImage method instead of imageLoader.DisplayImage (capital D)