Skip to content
We are not Gif makers, We are developers
Branch: master
Clone or download
Tibolte Merge pull request #42 from TurboProgramming/patch-1
Replacement of "compile" with "implementation"
Latest commit 6417746 May 10, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
elasticdownload Adding a space for formatting Aug 2, 2016
example Java code styling + more consistent code Aug 6, 2015
gradle/wrapper initial commit Feb 15, 2015
.gitignore
README.md Replacement of "compile" with "implementation" May 5, 2018
build.gradle
fail.gif upload demo gifs Apr 23, 2015
gradlew initial commit Feb 15, 2015
gradlew.bat initial commit Feb 15, 2015
settings.gradle
success.gif

README.md

We are not Gif makers, We are developers

Maven Central Android Arsenal

Recently me and my friend came across this downloading animation on Dribble: https://dribbble.com/shots/1887815-Download?list=users&offset=4 We found it so nice that we decided to develop it for Android!

We implemented it with a custom view, playing with canvas rotation and path drawing.

System Requirement

Android v2.2+

Usage

Grab it from maven:

    implementation 'com.github.tibolte:elasticdownload:1.0.+'

Declare this view in your layout like below, it's also possible to inflate it manually.

    <is.arontibo.library.ElasticDownloadView
        android:id="@+id/elastic_download_view"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerInParent="true"/>

At first, call startIntro() to make the view be able to display any percentage:

    @InjectView(R.id.elastic_download_view) ElasticDownloadView mElasticDownloadView;
    
    mElasticDownloadView.startIntro();

Set any progress:

    mElasticDownloadView.setProgress(25);

Notify if the download has failed or not:

    mElasticDownloadView.success(); //This function moves the cursor to 100 if the progress has not been set already
    
    mElasticDownloadView.fail();

Participating?

Make your pull requests on feature or bugfix branches.

License

Copyright 2015 Thibault Guégan and Aron Ingi Óskarsson

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
You can’t perform that action at this time.