{"id":13396318,"url":"https://github.com/jlmd/AnimatedCircleLoadingView","last_synced_at":"2025-03-13T22:32:07.255Z","repository":{"id":34793232,"uuid":"38777385","full_name":"jlmd/AnimatedCircleLoadingView","owner":"jlmd","description":"An animated circle loading view","archived":false,"fork":false,"pushed_at":"2020-10-14T04:14:37.000Z","size":765,"stargazers_count":1169,"open_issues_count":19,"forks_count":210,"subscribers_count":39,"default_branch":"master","last_synced_at":"2024-07-31T18:17:05.018Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jlmd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-07-08T20:13:57.000Z","updated_at":"2024-07-14T23:18:08.000Z","dependencies_parsed_at":"2022-07-17T05:30:31.757Z","dependency_job_id":null,"html_url":"https://github.com/jlmd/AnimatedCircleLoadingView","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jlmd%2FAnimatedCircleLoadingView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jlmd%2FAnimatedCircleLoadingView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jlmd%2FAnimatedCircleLoadingView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jlmd%2FAnimatedCircleLoadingView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jlmd","download_url":"https://codeload.github.com/jlmd/AnimatedCircleLoadingView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243494265,"owners_count":20299788,"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.726Z","updated_at":"2025-03-13T22:32:06.765Z","avatar_url":"https://github.com/jlmd.png","language":"Java","readme":"Animated Circle Loading View\n=========\n[![Download](https://api.bintray.com/packages/jlmd/maven/AnimatedCircleLoadingView/images/download.svg) ](https://bintray.com/jlmd/maven/AnimatedCircleLoadingView/_latestVersion)\n[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-AnimatedCircleLoadingView-green.svg?style=flat)](https://android-arsenal.com/details/1/2112)\n\nA determiante/indetermiante loading view animation.\nBased on [android-watch-loading-animation](http://www.materialup.com/posts/android-watch-loading-animation) by [Nils Banner](http://www.materialup.com/NilsMedia).\n\nHow it looks\n----\n![gif](./art/indeterminate_ok.gif \"animation_ok\")\n\n![gif](./art/indeterminate_failure.gif \"animation_failure\")\n\nUsage\n----\nAdd AnimatedCircleLoadingView to your layout and define mainColor and secondaryColor as custom attributes:\n\n```java\n\u003ccom.github.jlmd.animatedcircleloadingview.AnimatedCircleLoadingView\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n    android:id=\"@+id/circle_loading_view\"\n    android:layout_width=\"250dp\"\n    android:layout_height=\"250dp\"\n    android:background=\"@color/background\"\n    android:layout_centerInParent=\"true\"\n    app:animCircleLoadingView_mainColor=\"@color/main_color\"\n    app:animCircleLoadingView_secondaryColor=\"@color/secondary_color\"\n    app:animCircleLoadingView_textColor=\"@android:color/white\"\n    /\u003e\n```\n\n##### Determinate\nStart determinate:\n\n```java\nanimatedCircleLoadingView.startDeterminate();\n```\n\nModify percent:\n```java\nanimatedCircleLoadingView.setPercent(10);\n```\n\nIf percent is 100, the animation ends with success animation.\nOn error you must call stopFailure() method, then the application ends with failure animation.\n\n##### Indeterminate\nStart indeterminate:\n\n```java\nanimatedCircleLoadingView.startIndeterminate();\n```\n\nStop with success:\n\n```java\nanimatedCircleLoadingView.stopOk();\n```\n\nStop with failure:\n\n```java\nanimatedCircleLoadingView.stopFailure();\n```\n\nReset loading:\n\n```java\nanimatedCircleLoadingView.resetLoading();\n```\n\nGradle dependency\n----\nAdd repository to your build.gradle\n\n```groovy\nrepositories {\n  maven {\n    url \"http://dl.bintray.com/jlmd/maven\"\n  }\n}\n```\nAdd dependency to your build.gradle\n```groovy\ncompile 'com.github.jlmd:AnimatedCircleLoadingView:1.1.5@aar'\n```\n\nDeveloped by\n---\nJosé Luis Martín - \u003cjoseluis.martind@gmail.com\u003e\n\n* [LinkedIn](https://www.linkedin.com/in/jlmartind)\n* [Twitter](https://twitter.com/jlmartind)\n\nLicense\n----\n```\nCopyright 2015 José Luis Martín\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n   http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n```","funding_links":[],"categories":["Index `(light-weight pages)`","进度条","Index","Java","Libs"],"sub_categories":["\u003cA NAME=\"Widget\"\u003e\u003c/A\u003eWidget"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjlmd%2FAnimatedCircleLoadingView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjlmd%2FAnimatedCircleLoadingView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjlmd%2FAnimatedCircleLoadingView/lists"}