{"id":13396312,"url":"https://github.com/Tibolte/ElasticDownload","last_synced_at":"2025-03-13T22:32:03.954Z","repository":{"id":27365448,"uuid":"30840914","full_name":"Tibolte/ElasticDownload","owner":"Tibolte","description":"We are not Gif makers, We are developers","archived":false,"fork":false,"pushed_at":"2018-05-10T00:17:05.000Z","size":310,"stargazers_count":1654,"open_issues_count":16,"forks_count":266,"subscribers_count":49,"default_branch":"master","last_synced_at":"2024-07-31T18:17:03.458Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Tibolte.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-02-15T20:30:24.000Z","updated_at":"2024-07-12T03:39:58.000Z","dependencies_parsed_at":"2022-08-27T00:23:19.525Z","dependency_job_id":null,"html_url":"https://github.com/Tibolte/ElasticDownload","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tibolte%2FElasticDownload","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tibolte%2FElasticDownload/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tibolte%2FElasticDownload/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tibolte%2FElasticDownload/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Tibolte","download_url":"https://codeload.github.com/Tibolte/ElasticDownload/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242995913,"owners_count":20218828,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-30T18:00:44.550Z","updated_at":"2025-03-13T22:32:03.636Z","avatar_url":"https://github.com/Tibolte.png","language":"Java","readme":"# We are not Gif makers, We are developers\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.github.tibolte/elasticdownload/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.github.tibolte/elasticdownload)\n[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-ElasticDownload-brightgreen.svg?style=flat)](http://android-arsenal.com/details/1/1747)\n\nRecently me and my friend came across this downloading animation on Dribble: https://dribbble.com/shots/1887815-Download?list=users\u0026offset=4\nWe found it so nice that we decided to develop it for Android!\n\nWe implemented it with a custom view, playing with canvas rotation and path drawing.\n\n![](https://raw.githubusercontent.com/Tibolte/ElasticDownload/master/success.gif)\n![](https://raw.githubusercontent.com/Tibolte/ElasticDownload/master/fail.gif)\n\n## System Requirement\nAndroid v2.2+\n\nUsage\n===============================\n\nGrab it from maven:\n\n```groovy\n    implementation 'com.github.tibolte:elasticdownload:1.0.+'\n````\n\n\nDeclare this view in your layout like below, it's also possible to inflate it manually.\n\n```java\n    \u003cis.arontibo.library.ElasticDownloadView\n        android:id=\"@+id/elastic_download_view\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        android:layout_centerInParent=\"true\"/\u003e\n````\n\nAt first, call startIntro() to make the view be able to display any percentage:\n\n```java\n    @InjectView(R.id.elastic_download_view) ElasticDownloadView mElasticDownloadView;\n    \n    mElasticDownloadView.startIntro();\n````\n\nSet any progress:\n\n```java\n    mElasticDownloadView.setProgress(25);\n````\n\nNotify if the download has failed or not:\n\n```java\n    mElasticDownloadView.success(); //This function moves the cursor to 100 if the progress has not been set already\n    \n    mElasticDownloadView.fail();\n````\n\n# Participating?\nMake your pull requests on feature or bugfix branches.\n\nLicense\n-----------\n\n    Copyright 2015 Thibault Guégan and Aron Ingi Óskarsson\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n","funding_links":[],"categories":["Index `(light-weight pages)`","Java","进度条","ALL","Index","Libs"],"sub_categories":["\u003cA NAME=\"Widget\"\u003e\u003c/A\u003eWidget"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTibolte%2FElasticDownload","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FTibolte%2FElasticDownload","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTibolte%2FElasticDownload/lists"}