显示“加载”图像,直到在“图库菜单”中加载原始图像 - 都市风格 [英] Display a 'loading' image till loading original images in 'image gallery app' - metro style
问题描述
我正在开发图片库应用程序..
I am developing an image gallery application ..
从网上加载图片..
我正在做的是将图像url收集到一个数组中并将其绑定到列表视图中..
What i am doing is collecting image url into an array and bind it into a list view ..
它的工作正常..但我的问题是图像显示了一个十字标记('X')直到加载图片。
Its works fine.. But my problem is the images shows a cross mark ( 'X') till loading the images.
我期待的是
-
显示每个emage的加载图像,直到加载原始图像
Display a loading image for each emage untill loads the original image
如果1不可能,我该如何删除十字标记?
if 1 is not possible, how can i remove the cross mark?
推荐答案
您不能删除'X'标记,因为它是浏览器 - 具体功能。但是,您可以将图像设置为包含加载图像的背景图像。
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.
简单示例:
<img src="" style="background-image: url(loadingimage.gif)" />
这样,您的加载程序会显示并在加载完整图像时被屏蔽。
This way, your loader shows up and is masked when the full image loads.
这篇关于显示“加载”图像,直到在“图库菜单”中加载原始图像 - 都市风格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!