Alex Rivera | Logout

Android: Show progress circle like Google does in their apps

Asked 2010-12-21T21:41:55.333
13

I'm using an AsyncTask to download Images for my Listview, because I dont want the download of the Images to block my UI-Thread. While the images are being loaded, I want to show an animated progress circle in the spot, where the image will be.

But I cant find an Image of the progress circle. What is the Ressource-Id? Or is there any other way? Does someone has a link to this image?

Edit
Report

2 Answers

22

Look at the progress bar. It can work (and it does by default, AFAIR) in indeterminate mode, which means it shows a rotating circle, like the one you are asking for. I know this is not an image, but what you can do, is to place a FrameLayout instead of the image, with progress bar as the only child. Then, once the loading of the images finishes, remove the progress bar and add the image.

answered 2010-12-21T23:12:27.830
3

You want an indeterminate ProgressBar. Take a look at developer's website -

ProgressBar

answered 2010-12-21T23:11:44.583

Your Answer