-2

I found this animated circle bar and I want to add it to my project.

https://github.com/jlmd/AnimatedCircleLoadingView

The problem is, I don't know where to add it and how to get it in my project.

I tried to add

<com.github.jlmd.animatedcircleloadingview.AnimatedCircleLoadingView
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/circle_loading_view"
android:layout_width="250dp"
android:layout_height="250dp"
android:background="@colors/orange"
android:layout_centerInParent="true"
app:mainColor="@colors/orange"
app:secondaryColor="@colors/blue"
/>

on my activity_main.xml but I guess it's not the only thing I have to do.

Any informations about how to use this code in my project will be appreciated.

If I import it to Eclipse I recieve this

Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'. styles.xml /MainActivity/res/values line 4 Android AAPT Problem

ligi
  • 39,001
  • 44
  • 144
  • 244
Xan
  • 45
  • 8

2 Answers2

3

Add repository to your build.gradle

repositories {
    maven {
        url "http://dl.bintray.com/jlmd/maven"
    }
}

Add dependency to your build.gradle

compile 'com.github.jlmd:AnimatedCircleLoadingView:1.1.5@aar'

Reference AnimatedCircleLoadingView

Sujay
  • 3,417
  • 1
  • 23
  • 25
1

I think you haven't added the dependency for the Library. To do that, you can refer to this article.

The dependency you need to add is provided on the documentation for the Library (but it's for Android Studio, so you can use the above link to add it to Eclipse):

Add dependency to your build.gradle

compile 'com.github.jlmd:AnimatedCircleLoadingView:1.1.5@aar'

Community
  • 1
  • 1
Rachit
  • 3,173
  • 3
  • 28
  • 45
  • I'm still searching for a way to add repositories to my build.gradle and depencendy because there is no videos on youtube. If I want to search for "how to add dependencies, repostory on eclipse", etc. it gives me results for Android Studio. How and where can I find a tutorial? Please help me! – Xan Sep 05 '16 at 12:21
  • I'm using Eclipse – Xan Sep 05 '16 at 14:00
  • You can go through this article - http://stackoverflow.com/questions/9164893/how-do-i-add-a-maven-dependency-in-eclipse – Rachit Sep 06 '16 at 04:54