{"id":20009240,"url":"https://github.com/samlss/coffeeview","last_synced_at":"2025-05-04T19:35:50.696Z","repository":{"id":201738115,"uuid":"146866519","full_name":"samlss/CoffeeView","owner":"samlss","description":"🍵A cup of coffee loading view.","archived":false,"fork":false,"pushed_at":"2018-11-13T08:49:14.000Z","size":529,"stargazers_count":11,"open_issues_count":0,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-08T11:38:09.215Z","etag":null,"topics":["android","coffeeview","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-ZH.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-31T08:49:46.000Z","updated_at":"2021-05-13T05:22:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"591e68db-640c-48b8-87c5-65619b106fe8","html_url":"https://github.com/samlss/CoffeeView","commit_stats":null,"previous_names":["samlss/coffeeview"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samlss%2FCoffeeView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samlss%2FCoffeeView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samlss%2FCoffeeView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samlss%2FCoffeeView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samlss","download_url":"https://codeload.github.com/samlss/CoffeeView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252390662,"owners_count":21740360,"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","coffeeview","loadingview"],"created_at":"2024-11-13T07:14:48.145Z","updated_at":"2025-05-04T19:35:50.113Z","avatar_url":"https://github.com/samlss.png","language":"Java","readme":"# CoffeeView\n一杯咖啡的loading view.\n\n你可以指定杯子颜色，杯垫颜色，烟雾的颜色\n\n### [更多](https://github.com/samlss/FunnyViews)\n\n \u003cbr/\u003e\n\n[![Api reqeust](https://img.shields.io/badge/api-11+-green.svg)](https://github.com/samlss/CoffeeView)  [![MIT Licence](https://badges.frapsoft.com/os/mit/mit.svg?v=103)](https://github.com/samlss/CoffeeView/blob/master/LICENSE) [![Blog](https://img.shields.io/badge/samlss-blog-orange.svg)](https://blog.csdn.net/Samlss)\n\n### 默认效果:\n![gif1](https://github.com/samlss/CoffeeView/blob/master/screenshots/screenshot1.gif)\n\n### 自定义颜色效果:\n![gif2](https://github.com/samlss/CoffeeView/blob/master/screenshots/screenshot2.gif)\n\n\n\n### 使用\u003cbr\u003e\n在根目录的build.gradle添加这一句代码：\n```java\nallprojects {\n    repositories {\n        //...\n        maven { url 'https://jitpack.io' }\n    }\n}\n```\n\n在app目录下的build.gradle添加依赖使用：\n```java\ndependencies {\n    implementation 'com.github.samlss:CoffeeView:1.1'\n}\n```\n\n\n布局中：\n```java\n \u003ccom.iigo.library.CoffeeView\n            app:cupColor=\"#42b6b7\"\n            app:coasterColor=\"#72c7c8\"\n            app:vaporColor=\"#bbc8c8\"\n            android:layout_marginTop=\"20dp\"\n            android:layout_width=\"100dp\"\n            android:layout_height=\"100dp\" /\u003e\n\n```\n\n\u003cbr\u003e\n\n代码：\n```java\n  cofeeView.setCupColor(Color.BLUE); //设置杯子颜色\n  coffeeView.setCoasterColor(Color.RED); //设置杯垫颜色\n  coffeeView.setVaporColor(Color.GREEN); //设置烟雾颜色\n  \n  coffeeView.start(); //开始动画\n  coffeeView.stop(); //停止动画\n  \n  coffeeView.release(); //不需要使用该loading view的时候可手动释放，例如在activity的ondestroy()中\n```\n\u003cbr\u003e\n\n属性说明：\n\n| 属性            |             说明              |\n| --------------- | :----------------------------------: |\n| cupColor  |         杯子颜色         |\n| coasterColor |        杯垫颜色         |\n| vaporColor  |         烟雾颜色         |\n\n\u003cbr\u003e\n\n# Note\n你可以通过设置CoffeView的宽高来调整你想要的样式，关于烟雾的动画设置如果不符合你的要求的话，你可以下载源码进行修改，如果你喜欢请不要吝啬你的star\n\n\n## [LICENSE](https://github.com/samlss/CoffeeView/blob/master/LICENSE)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamlss%2Fcoffeeview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamlss%2Fcoffeeview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamlss%2Fcoffeeview/lists"}