| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Add jitpack in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Add the dependency
dependencies {
implementation 'com.github.Jamshid-M:WinterLayout:1.0'
}
Include WinterLayout in your xml
<uz.jamshid.lib.WinterLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/winter"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:snowCount="100"
app:snowImage="@drawable/ic_snowflake"
app:minSize="20"
app:maxSize="30"
tools:context=".MainActivity">
/** other view components **/
</uz.jamshid.lib.WinterLayout>
Because of library uses random values for size, amplitude and speed, user have to give range for every field
Give id for your WinterLayout and with the help of id find and use his startWinter and stopWinter methods
winter.startWinter()
winter.stopWinter() //stop naturally winter.stopImmediately() //stop immediately
winter.setSnowSize(20)
This method accepts
| Back | FazBrowse Home | New Git URL |