ProgressBar type: Landscape and rotation
There are three kinds of progressbar size, large, medium and small. If you do not specify a size, the medium size is displayed by default. When you specify a size for it, you need to use the Style property.
For example:
Style= "? Android:attr/progressbarstylehorizontal"
Or
Style= "@android: Style/widget.progressbar.horizontal"
Type parameter:
@android: Style/widget.progressbar.small
Or
? android:attr/progressbarstylesmall |
Rotary type (small) |
|
@android: Style/widget.progressbar.large
Or
? android:attr/progressbarstylelarge |
Swivel type (Large) |
|
@android: Style/widget.progressbar.horizontal
Or
? android:attr/progressbarstylehorizontal |
Transverse (linear) |
|
@android: Style/widget.progressbar.small.inverse
Or
? android:attr/progressbarstylesmallinverse |
Rotary type (small, reverse color) |
|
@android: Style/widget.progressbar.large.inverse
Or
? android:attr/progressbarstylelargeinverse |
Rotary type (large, reverse color) |
|
Control methods:
1.setMax ()
Sets the maximum value of the ProgressBar precision bar.
2.setProgress ()
Sets the current primary precision value of the ProgressBar precision bar.
3.setSecondaryProgress ()
Sets the current minor value of the ProgressBar progress bar. In the case of multiple file downloads, the main progress shows the download speed of all files, and the secondary progress shows the download speed of the current file.
Android Development using the ProgressBar control