Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to resolve: tenclouds:gaugeseekbar:1.0.1 #2

Open
sevenbitsriddhi opened this issue Oct 26, 2018 · 1 comment
Open

Failed to resolve: tenclouds:gaugeseekbar:1.0.1 #2

sevenbitsriddhi opened this issue Oct 26, 2018 · 1 comment

Comments

@sevenbitsriddhi
Copy link

When I tried to add the dependency in gradle file, I got the error "Failed to resolve: tenclouds:gaugeseekbar:1.0.1" I have also added following line into project level gradle
maven { url 'http://repo.aws.10clouds.com:8081/artifactory/gradle-dev-local/' }

@ghost
Copy link

ghost commented Nov 3, 2018

Hey, I had issues as well. Here is a solution .

  1. Download the github repo as zip file.
  2. Move folder gaugeseekbar into your Android Folder (that has app as folder, not src)
  3. Edit settings.gradle in Android Folder to "include ':app', ':gaugeseekbar'"
  4. In build.gradle (module:app) type
dependencies {
...
// GaugeSeek Bar
    implementation project(':gaugeseekbar')
}

Try to "Sync Project".

  1. To use in res/layouts/layout.xml file - <com.tenclouds.gaugeseekbar.GaugeSeekBar
  2. You might get issues if you using androidx - If so, edit error files and press alt + enter to re-apply right imports.

To use: If you want progress colors as gradient..
use app:progressGradient="@array/progressColor" and in res/values/colors.xml add

<array name="progressColor">
<item>@color/fbutton_color_sun_flower</item>
        <item>@color/fbutton_color_orange</item>
        <item>@color/fbutton_color_sun_flower</item>
        <item>@color/fbutton_color_pumpkin</item>
</array>

every item indicate a color in colors.xml .
<color name="fbutton_color_orange">#f39c12</color>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant