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.AlexKorRnd:android-range-seek-bar:v1.0.7'
}
dependencies {
implementation("com.github.AlexKorRnd:android-range-seek-bar:v1.0.7")
}
<dependency>
<groupId>com.github.AlexKorRnd</groupId>
<artifactId>android-range-seek-bar</artifactId>
<version>v1.0.7</version>
</dependency>
libraryDependencies += "com.github.AlexKorRnd" % "android-range-seek-bar" % "v1.0.7"
:dependencies [[com.github.AlexKorRnd/android-range-seek-bar "v1.0.7"]]
The home for this project has moved over to the following repository: https://github.com/anothem/android-range-seek-bar
You can continue using this repo, but new pull requests and issues will not be looked at. For the most up to date and actively maintained version of this project, please head over to the new repository above.
Thank you.
--Alex
This is a fork of the following project: https://code.google.com/p/range-seek-bar/ under Apache license.
It provides a SeekBar similar to the default Android one, but with two thumb controls allowing a range to be selected, and some other extras as well.
Feature additions are:
This repository contains an ant-based Android project which runs a demo app showing off some of the features of the range-seek-bar and ways of utilizing it. You should be able to import and run like any other Android app.
Add this in your build.gradle file:
dependencies {
compile 'com.yahoo.mobile.client.android.util.rangeseekbar:rangeseekbar-library:0.1.0'
}
dependencies {
compile 'com.yahoo.mobile.client.android.util.rangeseekbar:rangeseekbar-library:0.2.0-SNAPSHOT'
}
Copy the following into your own project:
Then you can use this in your layouts, either programmatically instantiating like in DemoActivity or through XML, like in main.xml
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.