2

I am trying to make a custom animation progress dialog. I have a lot of use case as the code fetches a lot of data from the server via Async Task. So while waiting i want to show a custom spinner. For now, I am able to use a default progress dialog. The code goes like this:

pd = new ProgressDialog(getContext(),R.style.SpinnerTheme);
        pd.setCancelable(false);
        pd.setProgressStyle(android.R.style.Widget_ProgressBar_Small);
        pd.show();

Now I want to make my own custom spinner which has a round icon in the center and a red color spinning spinner around the round icon.

Something like this: http://hpics.li/cd6acba

Tried to search a lot but didnt got any relevant answer. please help.

Adarsh Raj
  • 183
  • 1
  • 3
  • 12

2 Answers2

1

So either you can have a image and rotate it or can have multiple images and change these one by one to get the effect. I prefer first one. Rotating image. Animation list or animated rotate? (Android)

Community
  • 1
  • 1
Ramit
  • 416
  • 3
  • 8
0

I really don't know if I now understand you correctly. But maybe check this out: http://www.tutorialspoint.com/android/android_loading_spinner.htm

enter image description here

Peter234
  • 1,052
  • 7
  • 24