I'm doing a search and populating a listview with results as they come. On top there's a bar with the text "Search in progress... " I'd like to add a small spinning wheel animation to the bar in the right corner, to show the user that work is being done.
You can see this spinning wheel in the gallery app in the top right corner when thumbnails are being loaded. Also, the same animation is shown in Astro File Manager, when files are being listed in a directory, (again top right corner).
How do I put it there?
You need to call
requestWindowFeature
inonCreate
beforesetContentView
And Assuming you're using
AsyncTask
for Populating the listonPreExecute()
will callsetProgressBarIndeterminateVisibility(true);
onPostExecute()
will callsetProgressBarIndeterminateVisibility(false);
i did spinning progress bar in my application. Hope this will helps you.
if you have still doubts, pls let me know.