How to show boot animation in Android view image?

Does anyone know how to show the loading animation in ImageView in the same way as the animation dialog in loading?

I am developing an action that contains a view flipper. The presentation flipper contains several images, and it allows the user to view different images, triggering a gesture event. All images will be downloaded from a remote server using the async task when creating activity. I want to show loading animation in all images that do not contain images.

+7
source share
1 answer

Here's a tip: use a FrameLayout with an ImageView in the background and a spinner Progress Bar in the foreground. While the image is loading, you can display the rotating Progress Bar , and when the image is loading, just make this Progress Bar invisible. Hope this helps.

+4
source

All Articles