How to show loading animation in Android imageview?

Anyone knows how to show the loading animation in ImageView just like the animation in loading dialog box?

I am developing an activity that contains a view flipper. The view flipper contains several imageviews and it allows user to view different images by fling gesture event. All the images will be downloaded from the remote server via async task when the activity is created. I would like to show loading animation in all imageviews that does not contain image.


Here's a hint: use FrameLayout with an ImageView on background and a spinner Progress Bar on foreground. While the image is being loaded you can show the spinning Progress Bar , and when the image is loaded just make this Progress Bar invisible. Hope this helps.

链接地址: http://www.djcxy.com/p/53608.html

上一篇: 在不复制源列表的情况下有效排序IList <T>

下一篇: 如何在Android ImageView中显示加载动画?