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.