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.