I am developing an image gallery application ..
Its loading images from the internet..
What i am doing is collecting image url into an array and bind it into a list view ..
Its works fine.. But my problem is the images shows a cross mark ( 'X') till loading the images.
What i am expecting is
Display a loading image for each emage untill loads the original image
if 1 is not possible, how can i remove the cross mark?
One approach is to set the src to a 1x1 pixel transparent gif, set the dimensions to the final image size, the background image to a loading image, and then use JavaScript to load the image, and
onload
swap it into the placeholder gifexample
HTML
JS
You cannot remove the 'X' mark as that is a browser-specific feature. You could, however, set your images to have a background image of your loading image.
simple example:
This way, your loader shows up and is masked when the full image loads.