{"id":20009201,"url":"https://github.com/samlss/pacmanloadingview","last_synced_at":"2025-06-23T08:37:06.774Z","repository":{"id":201738174,"uuid":"139952085","full_name":"samlss/PacmanLoadingView","owner":"samlss","description":"👄A pacman loading view.","archived":false,"fork":false,"pushed_at":"2018-08-09T12:54:57.000Z","size":1193,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-08T11:37:58.081Z","etag":null,"topics":["android","loading","loadingview","pacman"],"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-06T07:54:49.000Z","updated_at":"2022-04-21T11:08:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"c2b5fa83-eb35-4842-bcbc-4d660a70b850","html_url":"https://github.com/samlss/PacmanLoadingView","commit_stats":null,"previous_names":["samlss/pacmanloadingview"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samlss%2FPacmanLoadingView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samlss%2FPacmanLoadingView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samlss%2FPacmanLoadingView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samlss%2FPacmanLoadingView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samlss","download_url":"https://codeload.github.com/samlss/PacmanLoadingView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252390664,"owners_count":21740361,"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","loading","loadingview","pacman"],"created_at":"2024-11-13T07:14:37.809Z","updated_at":"2025-05-04T19:35:50.515Z","avatar_url":"https://github.com/samlss.png","language":"Java","readme":"# PacmanLoadingView\nA pacman loading view(一个吃豆豆的loading view)。\n\n[![Api reqeust](https://img.shields.io/badge/api-11+-green.svg)](https://github.com/samlss/PacmanLoadingView)  [![MIT Licence](https://badges.frapsoft.com/os/mit/mit.svg?v=103)](https://github.com/samlss/PacmanLoadingView/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/PacmanLoadingView/blob/master/screenshots/screenshot4.gif)\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:PacmanLoadingView:1.12'\n}\n```\n\n布局中使用：\n```\n\u003ccom.iigo.library.PacmanLoadingView\n                    android:id=\"@+id/plv_loading_1\"\n                    android:layout_width=\"80dp\"\n                    android:layout_height=\"80dp\"\n                    app:eater_color=\"@android:color/holo_red_light\"\n                    app:peas_color=\"@android:color/holo_red_light\"\n                    app:speed=\"normal\" /\u003e\n```\n\n\u003cbr\u003e\n\n代码中使用：\n```\n  pacmanLoadingView.start(); //开始动画，需要调用该接口开始动画\n  pacmanLoadingView.stop(); //结束动画\n  pacmanLoadingView.setEaterColor(Color.BLACK); //设置吃东西的圆的颜色\n  pacmanLoadingView.setPeasColor(Color.BLUE); //设置豆的颜色\n```\n\n\u003cbr\u003e\n\n属性说明：\n\n| 属性        | 说明           |\n| ------------- |:-------------:|\n| eater_color      | 吃东西的圆的颜色|\n| peas_color | 豆豆的颜色 |\n| speed      | 吃的速度(normal正常，fast快，slow慢)|\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:PacmanLoadingView:1.12'\n}\n```\n\n\nin layout.xml：\n```\n\u003ccom.iigo.library.PacmanLoadingView\n                    android:id=\"@+id/plv_loading_1\"\n                    android:layout_width=\"80dp\"\n                    android:layout_height=\"80dp\"\n                    app:eater_color=\"@android:color/holo_red_light\"\n                    app:peas_color=\"@android:color/holo_red_light\"\n                    app:speed=\"normal\" /\u003e\n```\n\n\u003cbr\u003e\n\nin java code：\n```\n  pacmanLoadingView.start(); //start loading animation, need to call this method to start anim.\n  pacmanLoadingView.stop(); //stop loading animation\n  pacmanLoadingView.setEaterColor(Color.BLACK); //set the eater's color\n  pacmanLoadingView.setPeasColor(Color.BLUE); //set the pea's color\n```\n\n\u003cbr\u003e\n\nAttributes description：\n\n| attr        | description  |\n| ------------- |:-------------:|\n| eater_color      | the eater's color|\n| peas_color | the pea's color |\n| speed      | the eating speed(normal,fast,slow)|\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/PacmanLoadingView/blob/master/LICENSE)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamlss%2Fpacmanloadingview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamlss%2Fpacmanloadingview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamlss%2Fpacmanloadingview/lists"}