Skip to content

Latest commit

 

History

History
84 lines (72 loc) · 2.28 KB

README.md

File metadata and controls

84 lines (72 loc) · 2.28 KB

slider-view

Four Progress Bar Implementation in Android:

  • Arc Progress Bar Slider
  • Deep Progress Bar
  • Ascending Progress Bar
  • Stepper Ascending Progress Bar

Usage

  1. Add it in your root build.gradle at the end of repositories:
allprojects {
  repositories {
    ...
    maven { url 'https://jitpack.io' }
  }
}
  1. Add the dependency to app build.gradle
dependencies {
        implementation 'com.github.kAvEh--:slider-view:Tag'
}

Arc Progress Bar

  1. Insert ArcProgressView widget in your layout.
<com.kaveh.sliderview.ArcProgressView
        android:id="@+id/arc_progress"
        android:layout_width="200dp"
        android:layout_height="80dp"
        android:layout_margin="30dp"
        android:padding="30dp" />

Deep Progress Bar

  1. Insert DeepProgressView widget in your layout.
<com.kaveh.sliderview.DeepProgressView
        android:id="@+id/deep_progress"
        android:layout_width="200dp"
        android:layout_height="80dp"
        android:layout_margin="30dp"
        android:padding="30dp" />

Ascending Slider

  1. Insert StepperSlider widget in your layout.
<com.kaveh.sliderview.StepperSlider
        android:id="@+id/stepper"
        android:layout_width="200dp"
        android:layout_height="80dp"
        android:layout_margin="30dp"
        android:padding="30dp" />
  1. Set the stepper count for converting it to stepper slider
findViewById<StepperSlider>(R.id.stepper).stepper = 5 //Number of slices in Slider

Requirements

Android 4.4+ (API 19)

Developed By

License

Copyright 2020 kAvEh--

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.