An open API service indexing awesome lists of open source software.

https://github.com/samlss/rainyview

☔A rainy rainy rainy view.
https://github.com/samlss/rainyview

android loadingview rainy

Last synced: 29 days ago
JSON representation

☔A rainy rainy rainy view.

Awesome Lists containing this project

README

        

# RainyView
[![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)

A rainy rainy rainy view. ( ˘•灬•˘ )

### [More](https://github.com/samlss/FunnyViews)

### [中文](https://github.com/samlss/RainyView/wiki/Chinese_Document)


![gif1](https://github.com/samlss/RainyView/blob/master/screenshots/screenshot1.gif)


![gif2](https://github.com/samlss/RainyView/blob/master/screenshots/screenshot2.gif)

------
### Usage

#### Gradle
Add it in your app build.gradle at the end of repositories:
```java
dependencies {
implementation 'me.samlss:rainyview:1.0.0'
}
```

#### Maven
```java

me.samlss
rainyview
1.0.0
pom

```

#### In layout.xml

```java

```

#### In code
```java
rainyView.setLeftCloudColor(Color.parseColor("#B7AC8D")); //Set the color of the left cloud
rainyView.setRightCloudColor(Color.parseColor("#9b8f84")); //Set the color of the right cloud
rainyView.setRainDropColor(Color.parseColor("#9aa9bb")); //Set the color of the raindrop
rainyView.setRainDropMaxNumber(50); //Set the max number of the raindrop
rainyView.setRainDropMaxLength(50); //Set the max length of the raindrop
rainyView.setRainDropMinLength(20); //Set the min length of the raindrop
rainyView.setRainDropMaxSpeed(3); //Set the max speed of the raindrop
rainyView.setRainDropMinSpeed(1); //Set the min speed of the raindrop
rainyView.setRainDropSlope(-4); //Set the slope of the raindrop
rainyView.setRainDropCreationInterval(10); //Set the creation interval of the raindrop

rainyView.start(); //Start animation
rainyView.stop(); //Stop animation
rainyView.release(); //Release the rainy view
```

#### attr

```java














```

### License

```
Copyright 2018 samlss

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
```