I need a way to show “loading” image near text view. In my app, some data receives from server periodically and while these processes executing I need to show to user loading(wait) image like this image below.
sample image http://img685.imageshack.us/img685/1403/androidwait.png
Then, when executing finished, I want loading image to disappear from screen. Some time later when asyn task start to receive some data again. This image will show again. This all process will go periodically. I don’t use ProgressDialog. Because it cover all screen and keep user waiting.
Important point: when image disappeared, its area in layout will used by text view and no blank will be there.
This tutorial is answer of my question. When we apply this xml code where we want to show rotating circle progress bar in layout,
it seems just I want.
And then using java code to start and stop it.