syedowaisali / crystal-range-seekbar

537 stars 164 forks source link

Latest version (1.1.3) does not contain bar_highlight_gradient_start attribute #107

Open pwnell opened 6 years ago

pwnell commented 6 years ago

I have added this to my maven build:

compile 'com.crystal:crystalrangeseekbar:1.1.3' and I can use the component just fine. However, when trying to set a gradient bar highlight colour I get:

error: attribute 'za.co.xxx.myapp:bar_highlight_gradient_end' not found. Looking at the source code:

 * Created by owais.ali on 6/20/2016.
...
    private int barHighlightColor;
...

It does not match the content of the file on Github. How do I get the latest file?

mjrinker commented 3 years ago

I know this is really old but I found the solution. Change your dependency to this:

compile 'com.github.syedowaisali:crystal-range-seekbar:77d3cc9994'

The last part of that is basically the version (hash that corresponds to the commit hash), so you can change that to update the version if need be. At the time of writing, that is the current version.

Also note that you must have this in your project-level gradle file:

maven {
        url "https://jitpack.io"
    }