IOSProgressBar
IOSProgressBar is a progress-bar lib for android. And the progress-bar looks like iOS system style
Features:
- Support horizontal and vertical orientation.
- Support drag progress-bar and click progress-bar.
- Support progress divider and custom your divider height or color.
- Support show progress text
- Support custom progress rect conner radius and style
Sample screenshots:
Basic usage:
Gradle
Add maven repositories of jitpack in your project's build.gradle file:
Add dependence in your app's build.gradle file:
Code Sample
In .xml files:
And in activity or fragment:
API doc
Attribute | Description |
---|---|
ipb_conner_radius | IOSProgressBar rect conner radius |
ipb_background_color | IOSProgressBar background color |
ipb_progress_color | IOSProgressBar progress color |
ipb_progress_max | IOSProgressBar max progress |
ipb_progress_min | IOSProgressBar min progress |
ipb_progress | IOSProgressBar current progress |
ipb_progress_show_divider | IOSProgressBar show divider or not |
ipb_progress_divider_height | IOSProgressBar divider height |
ipb_progress_divider_color | IOSProgressBar divider color |
ipb_progress_show_text | IOSProgressBar show progress text ot not |
ipb_progress_text_color | IOSProgressBar progress text color |
ipb_progress_text_size | IOSProgressBar progress text size |
ipb_progress_bar_orientation | IOSProgressBar progress orientation:vertical or horizontal |
ipb_progress_conner_style | IOSProgressBar progress rect conner style: round or cut. |