{"id":13491410,"url":"https://github.com/Ajian-studio/GADownloading","last_synced_at":"2025-03-28T08:33:10.114Z","repository":{"id":201290861,"uuid":"76538390","full_name":"Ajian-studio/GADownloading","owner":"Ajian-studio","description":"A Gorgeous LoadingView (一个绚丽的LoadingView )","archived":false,"fork":false,"pushed_at":"2017-01-06T01:23:09.000Z","size":358,"stargazers_count":933,"open_issues_count":3,"forks_count":123,"subscribers_count":21,"default_branch":"master","last_synced_at":"2024-10-31T05:34:45.854Z","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/Ajian-studio.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,"governance":null}},"created_at":"2016-12-15T08:12:27.000Z","updated_at":"2024-08-23T22:47:05.000Z","dependencies_parsed_at":"2024-03-21T01:00:11.532Z","dependency_job_id":null,"html_url":"https://github.com/Ajian-studio/GADownloading","commit_stats":null,"previous_names":["ajian-studio/gadownloading"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ajian-studio%2FGADownloading","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ajian-studio%2FGADownloading/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ajian-studio%2FGADownloading/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ajian-studio%2FGADownloading/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ajian-studio","download_url":"https://codeload.github.com/Ajian-studio/GADownloading/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245996630,"owners_count":20707280,"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-31T19:00:56.801Z","updated_at":"2025-03-28T08:33:09.693Z","avatar_url":"https://github.com/Ajian-studio.png","language":"Java","funding_links":[],"categories":["DownloadView","Java"],"sub_categories":[],"readme":"## GADownloading \n## [中文文档](https://github.com/Ajian-studio/GADownloading/blob/master/README_CN.md)\n### 1 Creative prototype：\u003cbr\u003e\n\n#### The effect is shown below：\u003cbr\u003e\n\n![](https://github.com/Ajian-studio/GADownloading/raw/master/raw/loadingView_full_v.gif)  \u003cbr\u003e\n\n#### Through the code to achieve the effect is as follows：\u003cbr\u003e\n\nState of success：\u003cbr\u003e\n\n![](https://github.com/Ajian-studio/GADownloading/raw/master/raw/my_loading_view_success.gif) \u003cbr\u003e\n\nState of fail：\u003cbr\u003e\n\n![](https://github.com/Ajian-studio/GADownloading/raw/master/raw/my_loading_view_failed.gif) \u003cbr\u003e\n\u003cbr\u003e\nWe have achieved most of the results, the rest to you, ha ha，😄；\u003cbr\u003e\n\nNote：\u003cbr\u003e\n1.The project does not use any image resources, most of the colors can be changed by custom attributes；\u003cbr\u003e\n2.LoadingView will automatically adjust the width and height, the proposed width of not less than 100dp, otherwise ineffective；\u003cbr\u003e\n\n\n## 2 How to Use:\u003cbr\u003e\n### 2.1 How To Obtain Project Resources\nThe two forms of obtaining project resources are：\u003cbr\u003e\n1).Use libraries directly on JitPack；\u003cbr\u003e\n2).Copy the project's GADownloadingView and associated resources；\u003cbr\u003e\n\n#### 2.1.1 Use Libraries Directly On JitPack\n\nstep 1. In the project build.gradle add the following code：\n```\nallprojects {\n\t\trepositories {\n\t\t\t...\n            // add the follow code\n\t\t\tmaven { url 'https://jitpack.io' }\n\t\t}\n\t}\n```\nstep 2. In the module's build.gradle add the following code：\n```\ndependencies {\n\tcompile 'com.github.Ajian-studio:GADownloading:v1.0.2'\n}\n\n```\n#### 2.1.2 Copy The Project's Resouces\nCopy the src/ui/GADownloadingView and res/values/attr.xml files directly into the appropriate directory\n\n### 2.2 Add GADownloadingView To The Layout File\u003cbr\u003e\n\n```\n\u003cxxx.xxx.xxxx.GADownloadingView\n    android:id=\"@+id/ga_downloading\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\n    android:layout_below=\"@+id/show_failed\"\n    android:layout_centerHorizontal=\"true\" /\u003e\n```\n\n### 2.3 Find The View In The Activity\n```\nmGADownloadingView = (GADownloadingView) findViewById(R.id.ga_downloading);\n```\n### 2.4 Core Interface\n\n#### 2.4.1 performAnimation() \u003cbr\u003e\nStart the animation;\u003cbr\u003e\n\n#### 2.4.2 updateProgress(int progress) \u003cbr\u003e\nUpdate progress；\u003cbr\u003e\n\n#### 2.4.3 onFail()：\u003cbr\u003e\nThe download fails, and the execution fails with some animation；\u003cbr\u003e\n\n### 2.5 Custom Properties\u003cbr\u003e\n#### 2.5.1 You Can Change The Properties \u003cbr\u003e\n```\n    \u003cdeclare-styleable name=\"GADownloadingView\"\u003e\n\n        \u003cattr name=\"arrow_color\" format=\"color\" /\u003e\n        \u003cattr name=\"loading_circle_back_color\" format=\"color\" /\u003e\n        \u003cattr name=\"loading_line_color\" format=\"color\" /\u003e\n        \u003cattr name=\"progress_line_color\" format=\"color\" /\u003e\n        \u003cattr name=\"progress_text_color\" format=\"color\" /\u003e\n        \u003cattr name=\"done_text_color\" format=\"color\" /\u003e\n    \u003c/declare-styleable\u003e\n\n```\n\n#### 2.5.2 How To Use Customize Properties\u003cbr\u003e\n\nAdd a custom property namespace：\u003cbr\u003e\n```\n    \u003cRelativeLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n         xmlns:gastudio=\"http://schemas.android.com/apk/res-auto\"\n         ... ...\n    /\u003e\n```\nAdd some custom properties\u003cbr\u003e\n```\n    \u003ccom.gastudio.gadownloading.ui.GADownloadingView\n        android:id=\"@+id/ga_downloading\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"match_parent\"\n        gastudio:arrow_color=\"@android:color/white\"\n        gastudio:done_text_color=\"@android:color/white\"\n        gastudio:loading_circle_back_color=\"@android:color/white\"\n        gastudio:loading_line_color=\"@android:color/white\"\n        gastudio:progress_line_color=\"@android:color/white\"\n        gastudio:progress_text_color=\"@android:color/white\" /\u003e\n```\n\nFinally, if you feel pretty good, please click the Star!\u003cbr\u003e\n\nWelcome to join the GAStudio exchange qq group: 277582728;\u003cbr\u003e\n\n## License\n    Copyright 2016 GAStudio\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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAjian-studio%2FGADownloading","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FAjian-studio%2FGADownloading","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAjian-studio%2FGADownloading/lists"}