Taking Progress Dialog to a next level

Existing System
Basically, we hate the default Progress Dialog. It looks dull & slow. Another downside is its view, which varies with the version of Android. The Progress Dialog always comes with the message, indicating what is going on. There is no way by which we can simply indicate progress. In our implementation, we don’t need to give a message.  So it will remove the headache of giving message for every different process.
What we did
We created a class that extends Dialog class, overloaded the constructors passing custom theme & initialized the views & variables.

In Runnable if flag startAnimation is set, we keep changing the images in the image view on the specified time interval otherwise if not set, we stop executing the handler.   In following overridden methods we set the startAnimation flag accordingly.

Leave a Comment