(Code introduction:
1、 Introduction to the main features of the system ProgressDialog
1. In the source code of ProgressDialog, you can clearly see that different XML are displayed in style_ Horizontal and style_ In spinner, that is to say, your progress bar is either a circle or a bar.
2. In either case, the system has completely formatted the display of each part of the text.
2. actual situation
However, in practical application, we either need to change the position of the text, or need the coexistence of circles and bars, or even make a personalized progress bar that completely subverts the system progress bar. At this time, we will redesign our own progress bar. (I always think that the components in the application should not use the system as much as possible, but rewrite the system. In this way, the applications produced are a hundred schools of thought contend).
Here are some points I may need to pay attention to when implementing my own progress bar:)