WeatherView is an Android Library that helps you make a cool weather animation for your app.
This library is based on the confetti library.
## Setup
### Android Studio / Gradle
Add the following dependency in your root build.gradle at the end of repositories:
```Gradle
allprojects {
repositories {
//...
maven { url = 'https://jitpack.io' }
}
}
```
Add the dependency:
```Gradle
dependencies {
implementation 'com.github.MatteoBattilana:WeatherView:3.0.0'
}
```
## Simple usage
Simple use cases will look something like this:
### Kotlin
```Kotlin
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
weather_view.setWeatherData(PrecipType.RAIN)
}
}
```
### Java
```Java
public class Main2Activity extends AppCompatActivity
{
@Override
protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
WeatherView weatherView = findViewById(R.id.weather_view);
weatherView.setWeatherData(PrecipType.RAIN);
}
}
```
```Xml