{"id":20009160,"url":"https://github.com/samlss/whirlloadingview","last_synced_at":"2025-11-26T13:04:21.720Z","repository":{"id":201738197,"uuid":"145091768","full_name":"samlss/WhirlLoadingView","owner":"samlss","description":"🍩A loading view that includes two rotating arcs.","archived":false,"fork":false,"pushed_at":"2018-08-17T08:28:09.000Z","size":274,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-02T01:43:21.702Z","etag":null,"topics":["android","loadingview"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/samlss.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2018-08-17T08:10:06.000Z","updated_at":"2019-04-18T23:08:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"667f30fe-2fe0-4693-9eb8-8c1b8255e10a","html_url":"https://github.com/samlss/WhirlLoadingView","commit_stats":null,"previous_names":["samlss/whirlloadingview"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/samlss/WhirlLoadingView","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samlss%2FWhirlLoadingView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samlss%2FWhirlLoadingView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samlss%2FWhirlLoadingView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samlss%2FWhirlLoadingView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samlss","download_url":"https://codeload.github.com/samlss/WhirlLoadingView/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samlss%2FWhirlLoadingView/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286079811,"owners_count":27282121,"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","status":"online","status_checked_at":"2025-11-26T02:00:06.075Z","response_time":193,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["android","loadingview"],"created_at":"2024-11-13T07:14:28.963Z","updated_at":"2025-11-26T13:04:21.703Z","avatar_url":"https://github.com/samlss.png","language":"Java","readme":"# WhirlLoadingView\nA loading view that includes two rotating arcs(一个包含两条圆弧互相旋转的loading view).\n\n[![Api reqeust](https://img.shields.io/badge/api-11+-green.svg)](https://github.com/samlss/WhirlLoadingView)  [![MIT Licence](https://badges.frapsoft.com/os/mit/mit.svg?v=103)](https://github.com/samlss/WhirlLoadingView/blob/master/LICENSE) [![Blog](https://img.shields.io/badge/samlss-blog-orange.svg)](https://blog.csdn.net/Samlss)\n\n\u003cbr\u003e\n\n  * [中文](#%E4%B8%AD%E6%96%87)\n  * [English](#english)\n  * [License](#license)\n\n\u003cbr\u003e\n\n![gif](https://github.com/samlss/WhirlLoadingView/blob/master/screenshots/screenshot.gif)\n\n\n\n## 中文\n\n### 使用\u003cbr\u003e\n在根目录的build.gradle添加这一句代码：\n```\nallprojects {\n    repositories {\n        //...\n        maven { url 'https://jitpack.io' }\n    }\n}\n```\n\n在app目录下的build.gradle添加依赖使用：\n```\ndependencies {\n    implementation 'com.github.samlss:WhirlLoadingView:1.0'\n}\n```\n\n布局中使用：\n```\n \u003ccom.iigo.library.WhirlLoadingView\n        android:id=\"@+id/wlv_loading\"\n        android:layout_centerInParent=\"true\"\n        android:layout_width=\"60dp\"\n        app:duration=\"900\"\n        app:loadingColor=\"@android:color/white\"\n        app:interpolator=\"LinearInterpolator\"\n        android:layout_height=\"60dp\" /\u003e\n\n```\n\n\u003cbr\u003e\n\n代码中使用：\n```\n  whirlLoadingView.pause(); //暂停动画\n  whirlLoadingView.resume(); //恢复动画\n   \n  whirlLoadingView.start(); //开始动画\n  whirlLoadingView.stop(); //停止动画\n  whirlLoadingView.release(); //不需要使用该loading view的时候可手动释放，例如在activity的ondestroy()中\n  \n  whirlLoadingView.setColor(Color.RED); //圆弧颜色\n```\n\n\u003cbr\u003e\n\n属性说明：\n\n| 属性        | 说明           |\n| ------------- |:-------------:|\n| loadingColor      | 旋转圆弧的颜色 |\n| duration      | 动画时间 |\n| interpolator | 动画加速器 |\n\n### 插值器值interpolator: \u003cbr\u003e\n* AccelerateDecelerateInterpolator\n* AccelerateInterpolator\n* DecelerateInterpolator\n* BounceInterpolator\n* CycleInterpolator\n* LinearInterpolator\n* AnticipateOvershootInterpolator\n* AnticipateInterpolator\n* OvershootInterpolator\n\n\u003cbr\u003e\n\n## English\n\n### Use\u003cbr\u003e\nAdd it in your root build.gradle at the end of repositories：\n```\nallprojects {\n    repositories {\n        //...\n        maven { url 'https://jitpack.io' }\n    }\n}\n```\n\nAdd it in your app build.gradle at the end of repositories:\n```\ndependencies {\n    implementation 'com.github.samlss:WhirlLoadingView:1.0'\n}\n```\n\n\nin layout.xml：\n```\n\u003ccom.iigo.library.WhirlLoadingView\n        android:id=\"@+id/wlv_loading\"\n        android:layout_centerInParent=\"true\"\n        android:layout_width=\"60dp\"\n        app:duration=\"900\"\n        app:loadingColor=\"@android:color/white\"\n        app:interpolator=\"LinearInterpolator\"\n        android:layout_height=\"60dp\" /\u003e\n\n```\n\n\u003cbr\u003e\n\nin java code：\n```\n  whirlLoadingView.pause(); //pause animation\n  whirlLoadingView.resume(); //resume animation\n   \n  whirlLoadingView.start(); //start animation\n  whirlLoadingView.stop(); //stop animation\n  whirlLoadingView.release(); //Can 'released' when you don't need to use the loading view, for example in the activity's onDestroy()\n  \n  whirlLoadingView.setColor(Color.RED); //set the color of the arcs\n```\n\u003cbr\u003e\n\n\nAttributes description：\n\n| attr        | description  |\n| ------------- |:-------------:|\n| loadingColor      | the color of the rotating arcs |\n| duration      | the animation duration |\n| interpolator | the animation interpolator |\n\n### interpolator: \u003cbr\u003e\n* AccelerateDecelerateInterpolator\n* AccelerateInterpolator\n* DecelerateInterpolator\n* BounceInterpolator\n* CycleInterpolator\n* LinearInterpolator\n* AnticipateOvershootInterpolator\n* AnticipateInterpolator\n* OvershootInterpolator\n\n\u003cbr\u003e\n\n[id]: http://example.com/ \"Optional Title Here\"\n\n## [LICENSE](https://github.com/samlss/WhirlLoadingView/blob/master/LICENSE)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamlss%2Fwhirlloadingview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamlss%2Fwhirlloadingview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamlss%2Fwhirlloadingview/lists"}