There are a variety of progress bars in Android, such as circle circles, horizontal line progress bar, the progress bar can be stretched, and various progress bars are as follows
Seekbar is a stretchable progress bar, Ratingbar is a progress bar for scoring, all of which belong to ProgressBar subclasses
ProgressBar has a variety of styles, such as horizontal, Small, Large, inverse, etc.
Main properties of the progress bar
Progress bar Max: Max
Current Progress: progress
Value for minor progress: secondaryprogress
Progressbar.isindeterminate ();
Used to determine if the progress bar is a circle or a horizontal line, and the return value is Boolean
Progressbar.incrementprogressby (10);
10 increase on the main progress bar
Progressbar.incrementsecondaryprogressby (20);
20 increase on the secondary progress bar
Main properties and Onseekbarchangelistener of Seekbar
Progress bar Max: Max
Current Progress: progress
Minor progress value: Secondaryprogress
There are 3 methods of Onseekbarchangelistener
Main properties and Onratingbarchangelistener of Ratingbar
Number of stars: Numstars
Current level: progress
Increment: stepsize
The use of Onratingbarchangelistener
Progress bar in Android