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:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Add dependence in your app's build.gradle file:
dependencies {
implementation 'com.github.hyy920109:IOSProgressBar:v1.2.0'
}
Code Sample
In .xml files:
... <com.hyy.iosprogressbar.IOSProgressBar android:id="@+id/ios_progress_bar_horizontal" android:layout_width="164dp" android:layout_height="56dp" app:ipb_conner_radius="8dp" app:ipb_progress_show_text="true" app:ipb_progress_bar_orientation="horizontal" app:layout_constraintTop_toTopOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" android:layout_marginTop="@dimen/fab_margin"/> <com.hyy.iosprogressbar.IOSProgressBar android:id="@+id/ios_progress_bar_vertical" android:layout_width="56dp" android:layout_height="164dp" app:ipb_conner_radius="8dp" app:ipb_progress_max="4" app:ipb_progress_show_divider="true" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" /> ...