[Library] Lemniscate Progress View

Search This thread

vlad1m1r90

Member
Mar 24, 2014
22
9
31
Berlin
Hi Xda, I've been working on this library for past couple of weeks. The library is a collection of progress views based on mathematical curves. Please try it, fork it, and contribute to it.

Github project page: https://github.com/vlad1m1r990/Lemniscate
Apache License 2.0.

o3rjwXa.gif


Setup
Add to your module's build.gradle:
Code:
allprojects {
    repositories {
        ...
        maven { url 'https://jitpack.io' }
    }
}
and to your app build.gradle:
Code:
dependencies {
        compile 'com.github.vlad1m1r990:Lemniscate:1.0.2'
}

Usage:
Code:
<com.vlad1m1r.lemniscate.BernoullisProgressView
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    app:duration="1000"
    app:hasHole="false"
    app:lineColor="@color/colorPrimary"
    app:lineLength="0.6"
    app:lineLengthChangeable="true"
    app:maxLineLength="0.8"
    app:minLineLength="0.4"
    app:sizeMultiplier="1"
    app:strokeWidth="5dp"/>

More about library can be found on GitHub page.