tags:

views:

28

answers:

1

I need to display progress icon in button so that user can interact other GUI elements while background task is processing.

I have searched in Android developer site and found that we can use animated drawables but don't know how to use them. Please advise on the same.

A: 

If the default progress indicator is good enough for you (i.e. the spinning wheel), then you can just use ProgressBar. To change it from a normal progress bar to a spinning wheel, use progressBar.setIndeterminate(true).

Neil Traft