{"id":20009164,"url":"https://github.com/samlss/rainyview","last_synced_at":"2025-07-28T12:16:31.743Z","repository":{"id":201738190,"uuid":"152570340","full_name":"samlss/RainyView","owner":"samlss","description":"☔A rainy rainy rainy view. ","archived":false,"fork":false,"pushed_at":"2018-10-12T06:42:55.000Z","size":3392,"stargazers_count":110,"open_issues_count":0,"forks_count":17,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-05-04T19:39:54.395Z","etag":null,"topics":["android","loadingview","rainy"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","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-10-11T10:01:33.000Z","updated_at":"2025-01-15T02:18:19.000Z","dependencies_parsed_at":"2023-10-20T05:06:00.037Z","dependency_job_id":null,"html_url":"https://github.com/samlss/RainyView","commit_stats":null,"previous_names":["samlss/rainyview"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/samlss/RainyView","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samlss%2FRainyView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samlss%2FRainyView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samlss%2FRainyView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samlss%2FRainyView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samlss","download_url":"https://codeload.github.com/samlss/RainyView/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samlss%2FRainyView/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267514958,"owners_count":24100030,"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-07-28T02:00:09.689Z","response_time":68,"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","rainy"],"created_at":"2024-11-13T07:14:30.164Z","updated_at":"2025-07-28T12:16:31.721Z","avatar_url":"https://github.com/samlss.png","language":"Java","readme":"# RainyView\n[![Download](https://api.bintray.com/packages/samlss/maven/rainyview/images/download.svg)](https://bintray.com/samlss/maven/rainyview/_latestVersion)   [![Api reqeust](https://img.shields.io/badge/API-11+-brightgreen.svg?style=flat)](https://android-arsenal.com/api?level=11#l11)    [![Apache License 2.0](https://img.shields.io/hexpm/l/plug.svg)](https://github.com/samlss/RainyView/blob/master/LICENSE)  [![Blog](https://img.shields.io/badge/samlss-blog-orange.svg)](https://blog.csdn.net/Samlss)\n\nA rainy rainy rainy view. ( ˘•灬•˘ )\n\n### [More](https://github.com/samlss/FunnyViews)\n\n### [中文](https://github.com/samlss/RainyView/wiki/Chinese_Document)\n\n\u003cbr/\u003e\n\n\n![gif1](https://github.com/samlss/RainyView/blob/master/screenshots/screenshot1.gif)\n\n\u003cbr/\u003e\n\n![gif2](https://github.com/samlss/RainyView/blob/master/screenshots/screenshot2.gif)\n\n\n\n------\n### Usage\n\n#### Gradle\nAdd it in your app build.gradle at the end of repositories:\n  ```java\n  dependencies {\n      implementation 'me.samlss:rainyview:1.0.0'\n  }\n  ```\n\n#### Maven\n```java\n\u003cdependency\u003e\n  \u003cgroupId\u003eme.samlss\u003c/groupId\u003e\n  \u003cartifactId\u003erainyview\u003c/artifactId\u003e\n  \u003cversion\u003e1.0.0\u003c/version\u003e\n  \u003ctype\u003epom\u003c/type\u003e\n\u003c/dependency\u003e\n```\n\n#### In layout.xml\n\n```java\n    \u003cme.samlss.view.RainyView\n          app:left_cloud_color=\"#B7AC8D\"\n          app:right_cloud_color=\"#9b8f84\"\n          app:raindrop_color=\"#9aa9bb\"\n          app:raindrop_creation_interval=\"10\"\n          app:raindrop_max_number=\"50\"\n          app:raindrop_max_length=\"50\"\n          app:raindrop_min_length=\"20\"\n          app:raindrop_min_speed=\"1\"\n          app:raindrop_max_speed=\"3\"\n          app:raindrop_size=\"15\"\n          app:raindrop_slope=\"-4\"\n          android:layout_weight=\"1\"\n          android:layout_width=\"0dp\"\n          android:layout_height=\"match_parent\" /\u003e\n```\n\n#### In code\n```java\nrainyView.setLeftCloudColor(Color.parseColor(\"#B7AC8D\")); //Set the color of the left cloud\nrainyView.setRightCloudColor(Color.parseColor(\"#9b8f84\")); //Set the color of the right cloud\nrainyView.setRainDropColor(Color.parseColor(\"#9aa9bb\")); //Set the color of the raindrop\nrainyView.setRainDropMaxNumber(50); //Set the max number of the raindrop\nrainyView.setRainDropMaxLength(50); //Set the max length of the raindrop\nrainyView.setRainDropMinLength(20); //Set the min length of the raindrop\nrainyView.setRainDropMaxSpeed(3); //Set the max speed of the raindrop\nrainyView.setRainDropMinSpeed(1); //Set the min speed of the raindrop\nrainyView.setRainDropSlope(-4); //Set the slope of the raindrop\nrainyView.setRainDropCreationInterval(10); //Set the creation interval of the raindrop\n\nrainyView.start(); //Start animation\nrainyView.stop(); //Stop animation\nrainyView.release(); //Release the rainy view\n```\n\n\n#### attr\n\n```java\n    \u003cdeclare-styleable name=\"RainyView\"\u003e\n        \u003c!--The color of raindrop--\u003e\n        \u003cattr name=\"raindrop_color\" format=\"color\"\u003e\u003c/attr\u003e\n\n        \u003c!--The color of the left cloud--\u003e\n        \u003cattr name=\"left_cloud_color\" format=\"color\"\u003e\u003c/attr\u003e\n\n        \u003c!--The color of the right cloud--\u003e\n        \u003cattr name=\"right_cloud_color\" format=\"color\"\u003e\u003c/attr\u003e\n\n        \u003c!--Number of raindrops that can coexist at the same time--\u003e\n        \u003cattr name=\"raindrop_max_number\" format=\"integer\"\u003e\u003c/attr\u003e\n\n        \u003c!--The creation of the raindrop interval in millis--\u003e\n        \u003cattr name=\"raindrop_creation_interval\" format=\"integer\"\u003e\u003c/attr\u003e\n\n        \u003c!--The min length in pixel of every raindrop--\u003e\n        \u003cattr name=\"raindrop_min_length\" format=\"integer\"\u003e\u003c/attr\u003e\n\n        \u003c!--The max length in pixel of every raindrop--\u003e\n        \u003cattr name=\"raindrop_max_length\" format=\"integer\"\u003e\u003c/attr\u003e\n\n        \u003c!--The size in pixel of every raindrop--\u003e\n        \u003cattr name=\"raindrop_size\" format=\"integer\"\u003e\u003c/attr\u003e\n\n        \u003c!--The min speed of every raindrop--\u003e\n        \u003cattr name=\"raindrop_min_speed\" format=\"float\"\u003e\u003c/attr\u003e\n\n        \u003c!--The max speed of every raindrop--\u003e\n        \u003cattr name=\"raindrop_max_speed\" format=\"float\"\u003e\u003c/attr\u003e\n\n        \u003c!--The slope of every raindrop--\u003e\n        \u003cattr name=\"raindrop_slope\" format=\"float\"\u003e\u003c/attr\u003e\n    \u003c/declare-styleable\u003e\n```\n\n### License\n\n```\nCopyright 2018 samlss\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamlss%2Frainyview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamlss%2Frainyview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamlss%2Frainyview/lists"}