ProgressBar is a user interface which is used to indicate the progress of an operation. Progress bar follows two types of progress representation: determinate, and indeterminate.Progress bars can be displayed to the user in an interruptive or non-interruptive way depending upon the requirement.
Use indeterminate mode for the progress bar when you do not know how long an operation will take. Indeterminate mode is the default for progress bar and shows a cyclic animation without a specific amount of progress indicated.
|
|
Use determinate progress bar mode when you want to show that there has been a certain amount of improvement. For example, the remaining percentage of a file being downloaded, the sum reportedbatch written to database, or the remaining percentage of a playable audio file.
You set the progress bar style to R.style.Widget_ProgressBar_Horizontal to show horizontal progress, and set the amount of progress. The following example shows a common progress bar with progress by 25 per cent:
|
|