Giter Club home page Giter Club logo

snowfalling's Introduction

SnowFalling

Note : This is my first library project on github , so im not really familiar with the rules Please notice me if I did something improper, or maybe bad coding-style .

Many thanks!

SnowFalling effect for android

snowing

first of all , in your project gradle add this -

	allprojects {
	repositories {
		..
		maven { url 'https://jitpack.io' }
	}
}

then go to your app's dependencies add this -

  compile 'com.github.IamStY:SnowFalling:v1.4'

I've made some default definition for some variable, so all you need to do is type the following code In your activity -


   SnowFlakesLayout snowFlakesLayout;
   snowFlakesLayout = (SnowFlakesLayout) this.findViewById(R.id.snowflakelayout);
   snowFlakesLayout.init();
   snowFlakesLayout.startSnowing();

and xml -

 <com.example.stevenyang.snowfalling.SnowFlakesLayout
    android:id="@+id/snowflakelayout"
    android:layout_width="match_parent"
    android:layout_height="match_parent"></com.example.stevenyang.snowfalling.SnowFlakesLayout>

Or you can do this

    snowFlakesLayout.init();
    snowFlakesLayout.setWholeAnimateTiming(3000000);
    snowFlakesLayout.setAnimateDuration(10000);
    snowFlakesLayout.setGenerateSnowTiming(300);
    snowFlakesLayout.setRandomSnowSizeRange(40, 1);
    snowFlakesLayout.setImageResourceID(R.drawable.your_snow_flake_pic);
    snowFlakesLayout.setEnableRandomCurving(true);
    snowFlakesLayout.setEnableAlphaFade(true);
    snowFlakesLayout.startSnowing();

Peace! Yang Cheng-Kuang

snowfalling's People

Contributors

iamsty avatar

Stargazers

Neo avatar  avatar Nady avatar Lee avatar Netsnake avatar Mei avatar IJNUY avatar Dat Dang avatar  avatar Arsen Tagaev avatar  avatar Muhammad Bilal Asif avatar  avatar SM avatar  avatar Dmygrave avatar Pawel Cala avatar Ruby Faick avatar 老魏 avatar Joshi Tushar avatar Chahat Gupta avatar Karthick Pandian avatar chonamdoo avatar  avatar Rakshit Sorathiya avatar pRaNaY avatar Simona Stoyanova avatar  avatar Yoon Kyoung Tae avatar 김현준 avatar Tony Yang avatar Warren avatar Hue Kim avatar HsinHung avatar Willie Song avatar Tim avatar Fate Chang avatar Abby avatar Denny Yung-Yu Chen avatar Jain Zang avatar

Watchers

James Cloos avatar Jain Zang avatar  avatar Netsnake avatar  avatar

snowfalling's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.