{"id":20009221,"url":"https://github.com/samlss/fanloadingview","last_synced_at":"2025-03-02T01:41:43.994Z","repository":{"id":201738140,"uuid":"144545629","full_name":"samlss/FanLoadingView","owner":"samlss","description":"🌀A fan rotation loading view(一个风扇旋转的loading view).","archived":false,"fork":false,"pushed_at":"2018-08-13T08:15:54.000Z","size":228,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-12T14:32:42.159Z","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-13T07:40:45.000Z","updated_at":"2019-03-29T10:50:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"979535ae-4144-41c9-ae46-b08f8f518baa","html_url":"https://github.com/samlss/FanLoadingView","commit_stats":null,"previous_names":["samlss/fanloadingview"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samlss%2FFanLoadingView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samlss%2FFanLoadingView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samlss%2FFanLoadingView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samlss%2FFanLoadingView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samlss","download_url":"https://codeload.github.com/samlss/FanLoadingView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241447520,"owners_count":19964314,"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":["android","loadingview"],"created_at":"2024-11-13T07:14:42.096Z","updated_at":"2025-03-02T01:41:43.967Z","avatar_url":"https://github.com/samlss.png","language":"Java","readme":"# FanLoadingView\nA fan rotation loading view(一个风扇旋转的loading view).\n\n[![Api reqeust](https://img.shields.io/badge/api-11+-green.svg)](https://github.com/samlss/FanLoadingView)  [![MIT Licence](https://badges.frapsoft.com/os/mit/mit.svg?v=103)](https://github.com/samlss/FanLoadingView/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/FanLoadingView/blob/master/screenshots/screenshot1.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:FanLoadingView:1.0'\n}\n```\n\n布局中使用：\n```\n \u003ccom.iigo.library.FanLoadingView\n        app:main_color=\"@color/colorPrimary\"\n        app:interpolator=\"OvershootInterpolator\"\n        android:layout_centerInParent=\"true\"\n        android:layout_width=\"50dp\"\n        android:layout_height=\"50dp\" /\u003e\n\n```\n\n\u003cbr\u003e\n\n代码中使用：\n```\n  fanLoadingView.pause(); //暂停动画\n  fanLoadingView.resume(); //恢复动画\n   \n  fanLoadingView.start(); //开始动画\n  fanLoadingView.stop(); //停止动画\n  \n  fanLoadingView.setColor(Color.RED); //设置风扇主体颜色\n```\n\n\u003cbr\u003e\n\n属性说明：\n\n| 属性        | 说明           |\n| ------------- |:-------------:|\n| main_color      | 风扇主体颜色 |\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:FanLoadingView:1.0'\n}\n```\n\n\nin layout.xml：\n```\n \u003ccom.iigo.library.FanLoadingView\n        app:main_color=\"@color/colorPrimary\"\n        app:interpolator=\"OvershootInterpolator\"\n        android:layout_centerInParent=\"true\"\n        android:layout_width=\"50dp\"\n        android:layout_height=\"50dp\" /\u003e\n\n```\n\n\u003cbr\u003e\n\nin java code：\n```\n  fanLoadingView.pause(); //pause animation\n  fanLoadingView.resume(); //resume animation\n   \n  fanLoadingView.start(); //start animation\n  fanLoadingView.stop(); //stop animation\n  \n  fanLoadingView.setColor(Color.RED); //set the color of fan\n```\n\u003cbr\u003e\n\n\nAttributes description：\n\n| attr        | description  |\n| ------------- |:-------------:|\n| main_color      | the color |\n| interpolator | the animator 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/FanLoadingView/blob/master/LICENSE)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamlss%2Ffanloadingview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamlss%2Ffanloadingview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamlss%2Ffanloadingview/lists"}