We are not Gif makers, We are developers

Overview

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.
Comments
  • Bug on

    Bug on

    i followed your example. i works fine. But if we come back to the activity. Its not showing download button by default

    I mean we have two activities. we went from 1st to 2nd and in 2nd activity we have your view. First time when we open 2nd activity from 1st, it works fine. But Once we start some download (failed or downloaded) and then when i go back to 1st and come back again to second instead of showing download its showing 3rd image.

    Solution:- Just add method like elasticdownloader.showDownloadButton() which shows download button.

    Please also try to add methods to change the colors of download button

    First time i opened

    screenshot_2015-08-03-15-26-59

    Fail or pass screenshot_2015-08-03-15-33-03

    Went back to first activity an came back to 2nd i shows the image below instead of download button screenshot_2015-08-03-15-33-10

    opened by Ashok-Varma 15
  • Added the ability to set the background color

    Added the ability to set the background color

    Added 2 methods for setting the background color of the Elastic view. It should take in either an int color or a String and parse the color. If the string is null or the parsing fails, nothing will be set and it will retain the original color

    I created a pull request into the bugfix branch (not master) so you can update after testing if you would like. I tested it myself before pushing and it seems to have no issues that I can find.

    opened by PGMacDesign 5
  • Added the ability to set the background color

    Added the ability to set the background color

    Added 2 methods for setting the background color of the Elastic view. It should take in either an int color or a String and parse the color. If the string is null or the parsing fails, nothing will be set and it will retain the original color

    opened by PGMacDesign 3
  • How to change the background color of this view?

    How to change the background color of this view?

    @Tibolte

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

    doesn't do anything !

    opened by vj-1023 2
  • Library doesn't work

    Library doesn't work

    I've an issue, when I try to add library the give me an error:

    Binary XML file line #26: Error inflating class is.arontibo.library.ElasticDownloadView Caused by: java.lang.ClassNotFoundException: Didn't find class "is.arontibo.library.ElasticDownloadView" Suppressed: java.lang.ClassNotFoundException: is.arontibo.library.ElasticDownloadView Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available

    someone know why this error happens?

    opened by michelelacorte 0
  • Change the orange background

    Change the orange background

    hi, is it possible to change the background orange color of this view to another color? Or just removed that orange color and show the progress bar?

    Thanks.

    opened by lionlollipop 0
  • Update Request

    Update Request

    I see that the merge for latest code went in 2 months ago, but there is still no updated build (currently on 1.04). I would prefer to not to have to fork this to get the most current build as my app goes live on Friday. Any chance you could update a release and increment the counter to 1.05 so the newest code can be used? Thanks! PGMac

    opened by PGMacDesign 1
  • Shows a HUGE orange background under progress bar line and tag

    Shows a HUGE orange background under progress bar line and tag

    How do you remove it? I just want the line (progress bar ) and the tag moving on it, spanning just the required width not half of my screen with HUGE orange background.

    opened by ahmadalibaloch 2
  • keeps giving nullpointerexception

    keeps giving nullpointerexception

    mElasticDownloadView.startIntro(); keeps giving nullpointerexception

    my steps are

    1. Grab it from maven 2)Declare this view in your layout 3)At first, call startIntro().......and so on as described.

    but at run time it gives nullpointer exception

    opened by ShyaamJadhav 1
Releases(1.0.4)
Owner
Thibault Guégan
Thibault Guégan
ColoringLoading 4.7 0.0 Java This project provide Coloring Loading View for Android. And this project is not using the image file!

ColoringLoading ![Release](https://img.shields.io/github/release/recruit-lifestyle/ColoringLoading.svg?label=maven version) This project provide Color

Recruit Lifestyle Co. Ltd. 379 Jul 25, 2022
We are not Gif makers, We are developers

We are not Gif makers, We are developers Recently me and my friend came across this downloading animation on Dribble: https://dribbble.com/shots/18878

Thibault Guégan 1.7k Nov 28, 2022
[Development stopped in 2014. Unfinished and not stable - not recommended to use.] An easy-to-use ViewPager subclass with parallax background effect for Android apps.

Development stopped in 2014 Not developed since 2014. Unfinished and not stable - not recommended to use. ParallaxViewPager An easy-to-use ViewPager s

Andras Kindler 437 Dec 29, 2022
Glance Experimental Tools aims to supplement Jetpack Glance with features that are commonly required by developers but not yet available.

Glance Experimental Tools ?? Work in-progress: artifacts not available yet This project aims to supplement Jetpack Glance with features that are commo

Google 96 Dec 25, 2022
malik dawar 87 Sep 18, 2022
🔥The Android Startup library provides a straightforward, performant way to initialize components at the application startup. Both library developers and app developers can use Android Startup to streamline startup sequences and explicitly set the order of initialization.

??The Android Startup library provides a straightforward, performant way to initialize components at the application startup. Both library developers and app developers can use Android Startup to streamline startup sequences and explicitly set the order of initialization.

Rouse 1.3k Dec 30, 2022
Floating hint from edit text - inspired by Matt D. Smith's design: http://dribbble.com/shots/1254439--GIF-Mobile-Form-Interaction?list=users

Float Labeled EditText Simple implementation of a Float Labeled EditText: An Android ViewGroup which uses a child EditText and puts the hint on top of

Wrapp Archive 1.1k Nov 14, 2022
Android ImageView that handles animated GIF images

GifImageView Android ImageView that handles Animated GIF images Usage In your build.gradle file: dependencies { compile 'com.felipecsl:gifimageview:

Felipe Lima 1.1k Dec 27, 2022
Make your native android Dialog Fancy and Gify. A library that takes the standard Android Dialog to the next level with a variety of styling options and Gif's. Style your dialog from code.

FancyGifDialog-Android Prerequisites Add this in your root build.gradle file (not your module build.gradle file): allprojects { repositories { ...

Shashank Singhal 522 Jan 2, 2023
Awesome Image Picker library will pick images/gifs with beautiful interface. Supports image or gif, Single and Multiple Image selection.

Awesome Image Picker Awesome Image Picker library will pick images/gifs with beautiful interface. Supports image or gif, Single and Multiple Image sel

Prabhakar Thota 162 Sep 13, 2022
Android ImageView that handles animated GIF images

GifImageView Android ImageView that handles Animated GIF images Usage In your build.gradle file: dependencies { compile 'com.felipecsl:gifimageview:

Felipe Lima 1.1k Mar 9, 2021
Android View widget for displaying GIF animations.

gif-movie-view Android View widget for displaying GIF animations. To show animated GIF in your application just add GifMovieView into your layout.

Sergey Bakhtiarov 459 Nov 10, 2022
Some loading GIF .

Android GifLoadingView This project idea is from Link . Thanks for the idea. I like all the animation in that webpage , but it's so hard to develop al

Roger 1.3k Dec 12, 2022
A small utility to record Android device screen to a GIF

RoboGif A small utility to record Android device screen to an optimized GIF so you can paste it to GitHub or a similar service. Requirements Python 2.

Jernej Virag 526 Dec 9, 2022
Big image viewer supporting pan and zoom, with very little memory usage and full featured image loading choices. Powered by Subsampling Scale Image View, Fresco, Glide, and Picasso. Even with gif and webp support! 🍻

BigImageViewer Big image viewer supporting pan and zoom, with very little memory usage and full featured image loading choices. Powered by Subsampling

Piasy 3.9k Dec 30, 2022
Create GIFs from Android devices (pronounced "gif cap")

gifcap A shell script to record GIFs from your Android devices A picture is worth 1,000 words - and, when prototyping animations, recording visual gli

Outlook 207 Nov 26, 2022
An implementation of a gif decoder written 100% in Kotlin, plus an associated Drawable for Android

An implementation of a gif decoder written 100% in Kotlin, plus an associated Drawable for Android

Benoît Vermont 41 Nov 19, 2022
A program that converts an SGF-file to an animated GIF a la Hayauchi Super Igo style.

sgf2gif A program that converts an SGF-file to an animated GIF. The animated GIF is highly inspired by the classic game Hayauchi Super Igo for NES. Us

null 12 Jul 6, 2022
Convert video to GIF. Simple and fast.

Convert video to GIF. Simple and fast.

tasy5kg 24 Nov 26, 2022
Android library to display a ListView whose cells are not rigid but flabby and react to ListView scroll.

FlabbyListView This library is not maintained anymore and there will be no further releases Android library to display a ListView which cells are not

JPARDOGO 762 Nov 23, 2022