{"id":20009176,"url":"https://github.com/samlss/peasloadingview","last_synced_at":"2025-05-04T19:35:49.026Z","repository":{"id":201738183,"uuid":"141523803","full_name":"samlss/PeasLoadingView","owner":"samlss","description":"⭕A peas rotation loading view.","archived":false,"fork":false,"pushed_at":"2018-08-10T02:20:10.000Z","size":5979,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-22T15:23:48.090Z","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-07-19T04:18:37.000Z","updated_at":"2023-12-15T17:35:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"c822e927-9900-437e-87ab-bbefd32f8cd7","html_url":"https://github.com/samlss/PeasLoadingView","commit_stats":null,"previous_names":["samlss/peasloadingview"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samlss%2FPeasLoadingView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samlss%2FPeasLoadingView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samlss%2FPeasLoadingView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samlss%2FPeasLoadingView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samlss","download_url":"https://codeload.github.com/samlss/PeasLoadingView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252390621,"owners_count":21740354,"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:33.167Z","updated_at":"2025-05-04T19:35:47.985Z","avatar_url":"https://github.com/samlss.png","language":"Java","readme":"# PeasLoadingView\n\nA peas ratationloading view(一个小豆豆旋转loading view).\n\n\n[![Api reqeust](https://img.shields.io/badge/api-11+-green.svg)](https://github.com/samlss/PeasLoadingView)  [![MIT Licence](https://badges.frapsoft.com/os/mit/mit.svg?v=103)](https://github.com/samlss/PeasLoadingView/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/PeasLoadingView/blob/master/screenshots/screenshot3.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:PeasLoadingView:1.2'\n}\n```\n\n布局中使用：\n```\n\u003ccom.iigo.library.PeasLoadingView\n            android:id=\"@+id/plv_loading1\"\n            app:peas_count=\"8\"\n            app:peas_radius=\"8.5\"\n            android:layout_width=\"50dp\"\n            android:layout_height=\"50dp\" /\u003e\n```\n\n\u003cbr\u003e\n\n代码中使用：\n```\n  peasLoadingView.start(); //开始动画\n  peasLoadingView.stop(); //结束动画\n  \n  peasLoadingView.setPeasCount(7);//设置豆豆数量\n  peasLoadingView.setInterpolator(new LinearInterpolator()); //设置动画插值器\n  peasLoadingView.setPeasColors(new int[]{Color.RED, Color.WHITE, Color.GREEN, Color.BLUE, Color.YELLOW, Color.MAGENTA, Color.GRAY}); //设置颜色数组\n```\n\n\u003cbr\u003e\n\n属性说明：\n\n| 属性        | 说明           |\n| ------------- |:-------------:|\n| peas_radius      | 豆豆大小，半径 |\n| peas_count | 豆豆数量 |\n\n\u003cbr\u003e\n\n如果不能满足你的需要，你可以下载源码自行修改。\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:PeasLoadingView:1.2'\n}\n```\n\n\nin layout.xml：\n```\n\u003ccom.iigo.library.PeasLoadingView\n            android:id=\"@+id/plv_loading1\"\n            app:peas_count=\"8\"\n            app:peas_radius=\"8.5\"\n            android:layout_width=\"50dp\"\n            android:layout_height=\"50dp\" /\u003e\n```\n\n\u003cbr\u003e\n\nin java code：\n```\n  peasLoadingView.start(); //start animation\n  peasLoadingView.stop(); //stop animation\n  \n  peasLoadingView.setPeasCount(7);//set the peas count\n  peasLoadingView.setInterpolator(new LinearInterpolator()); //set the animation interpolator\n  peasLoadingView.setPeasColors(new int[]{Color.RED, Color.WHITE, Color.GREEN, Color.BLUE, Color.YELLOW, Color.MAGENTA, Color.GRAY}); //set the color array\n```\n\n\u003cbr\u003e\n\nAttributes description：\n\n| attr        | description  |\n| ------------- |:-------------:|\n| peas_radius      | the peas size, radius |\n| peas_count | the peas count |\n\nIf you can not meet your needs, you can download the source code to modify it.\n\n[id]: http://example.com/ \"Optional Title Here\"\n\n## [LICENSE](https://github.com/samlss/PeasLoadingView/blob/master/LICENSE)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamlss%2Fpeasloadingview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamlss%2Fpeasloadingview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamlss%2Fpeasloadingview/lists"}