Step 1. Add the JitPack repository to your build file
Add it in your root settings.gradle at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
Add it in your settings.gradle.kts at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
}
Add to pom.xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Add it in your build.sbt at the end of resolvers:
resolvers += "jitpack" at "https://jitpack.io"
Add it in your project.clj at the end of repositories:
:repositories [["jitpack" "https://jitpack.io"]]
Step 2. Add the dependency
dependencies {
implementation 'com.github.alangvara:android-range-seek-bar:v0.3.0'
}
dependencies {
implementation("com.github.alangvara:android-range-seek-bar:v0.3.0")
}
<dependency>
<groupId>com.github.alangvara</groupId>
<artifactId>android-range-seek-bar</artifactId>
<version>v0.3.0</version>
</dependency>
libraryDependencies += "com.github.alangvara" % "android-range-seek-bar" % "v0.3.0"
:dependencies [[com.github.alangvara/android-range-seek-bar "v0.3.0"]]
If you are coming from the original repo, it has a new home so if you're seeing this, you're probably in the right place.
This library provides a SeekBar similar to the default Android one, but with two thumb controls allowing a range to be selected.
Main features:
Customizations:
Should be able to import, build and run in Android Studio or from the command line with gradle. The rangeseekbar-sample shows the available features and customizations in code and XML.
Add this in your build.gradle file:
dependencies {
compile 'org.florescu.android.rangeseekbar:rangeseekbar-library:0.3.0'
}
dependencies {
compile 'org.florescu.android.rangeseekbar:rangeseekbar-library:0.4.0-SNAPSHOT'
}
Using the latest work-in-progress snapshot also requires including the snapshot repository as a depencency:
apply plugin: 'com.android.application'
repositories {
maven {
url "https://oss.sonatype.org/content/repositories/snapshots"
}
}
The android-range-seek-bar started as a fork of the following project: https://code.google.com/p/range-seek-bar/ under Apache license.
The images are licensed under Creative Commons ( http://creativecommons.org/licenses/by/3.0/ ). The originals are provided in the original project ( https://code.google.com/p/range-seek-bar/ ) and seek_thumb_disabled.png is added by us.
The source code is licensed under the Apache License. A copy of this can be found at http://www.apache.org/licenses/LICENSE-2.0 and has been included in the repository as well.