diff --git a/CHANGELOG.md b/CHANGELOG.md index 406428e..c049551 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,17 @@ Change Log ========== +## Version 1.1.0 + +_2016-12-25_ + + * Support custom snowflake image (attr `snowflakeImage`). + * Support custom snowflake angle (attr `snowflakeAngleMax`). + * Support custom snowflake speed (attrs `snowflakeSpeedMin`, `snowflakeSpeedMax`). + * All snowflakes are unique (size, speed, angle, alpha, start position). + * Calculate size by using gaussian ("normally") distribution. + + ## Version 1.0.0 _2016-12-23_ diff --git a/README.md b/README.md index d212406..1688aaa 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,9 @@ Android-Snowfall [![Release](https://jitpack.io/v/jetradarmobile/android-snowfall.svg)](https://jitpack.io/#jetradarmobile/android-snowfall) -Implementation of Snowfall view. +Fully customizable implementation of "Snowfall View" on Android. + +![image](https://raw.githubusercontent.com/JetradarMobile/android-snowfall/master/art/snowfall-demo.gif) Compatibility @@ -30,7 +32,7 @@ Add the dependency ```groovy dependencies { - compile 'com.github.jetradarmobile:android-snowfall:1.0.0' + compile 'com.github.jetradarmobile:android-snowfall:1.1.0' } ``` @@ -38,16 +40,30 @@ dependencies { Usage ----- +Default implementation with round snowflakes: + +```xml + +``` + +Fully customized implementation: + ```xml + app:snowflakeAngleMax="5" + app:snowflakeSizeMin="8dp" + app:snowflakeSizeMax="32dp" + app:snowflakeSpeedMin="4" + app:snowflakeSpeedMax="12" + app:snowflakeFadingEnabled="true" + app:snowflakeImage="@drawable/snowflake"/> ``` diff --git a/art/snowfall-demo.gif b/art/snowfall-demo.gif new file mode 100644 index 0000000..50c0c5e Binary files /dev/null and b/art/snowfall-demo.gif differ diff --git a/snowfall-sample/build.gradle b/snowfall-sample/build.gradle index 2168081..96bad1a 100644 --- a/snowfall-sample/build.gradle +++ b/snowfall-sample/build.gradle @@ -3,7 +3,7 @@ apply plugin: 'kotlin-android' dependencies { compile project(':snowfall') - compile 'com.android.support:appcompat-v7:25.1.0' + compile 'com.android.support:appcompat-v7:25.0.1' compile 'org.jetbrains.kotlin:kotlin-stdlib:1.0.5-3' } diff --git a/snowfall-sample/src/main/res/layout/activity_snowfall.xml b/snowfall-sample/src/main/res/layout/activity_snowfall.xml index b8d373a..5d30849 100644 --- a/snowfall-sample/src/main/res/layout/activity_snowfall.xml +++ b/snowfall-sample/src/main/res/layout/activity_snowfall.xml @@ -14,10 +14,10 @@ app:snowflakeAlphaMin="200" app:snowflakeAlphaMax="250" app:snowflakeAngleMax="5" - app:snowflakeSizeMin="6dp" - app:snowflakeSizeMax="24dp" + app:snowflakeSizeMin="8dp" + app:snowflakeSizeMax="32dp" app:snowflakeSpeedMin="4" - app:snowflakeSpeedMax="8" + app:snowflakeSpeedMax="12" app:snowflakeFadingEnabled="true" app:snowflakeImage="@drawable/snowflake"/> diff --git a/snowfall-sample/src/main/res/values/colors.xml b/snowfall-sample/src/main/res/values/colors.xml index b4a9119..b908a4f 100644 --- a/snowfall-sample/src/main/res/values/colors.xml +++ b/snowfall-sample/src/main/res/values/colors.xml @@ -1,5 +1,7 @@ + #3F51B5 #303F9F - #FF4081 + #536DFE + \ No newline at end of file diff --git a/snowfall/build.gradle b/snowfall/build.gradle index f85bcac..d237ea8 100644 --- a/snowfall/build.gradle +++ b/snowfall/build.gradle @@ -2,7 +2,7 @@ apply plugin: 'com.android.library' apply plugin: 'kotlin-android' dependencies { - compile 'com.android.support:support-compat:25.1.0' + compile 'com.android.support:support-compat:25.0.1' compile 'org.jetbrains.kotlin:kotlin-stdlib:1.0.5-3' }