Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

should start stopped #20

Open
oduconge opened this issue Nov 23, 2018 · 2 comments
Open

should start stopped #20

oduconge opened this issue Nov 23, 2018 · 2 comments

Comments

@oduconge
Copy link

if I stop it on the onCreate, the animation always continuous...

@kuba14
Copy link

kuba14 commented Nov 28, 2018

For stopping/starting, just use visibility attribute.

@gcantoni
Copy link

gcantoni commented Dec 21, 2019

Just use this:
com.jetradarmobile.snowfall.SnowfallView snow; snow = findViewById(R.id.snow); snow.setVisibility(View.VISIBLE);

And in your desired layout xml file:
<com.jetradarmobile.snowfall.SnowfallView android:id="@+id/snow" android:layout_width="match_parent" android:layout_height="match_parent" android:visibility="invisible" />

If you want to start/stop it you can use for example SharedPreferences.

if (prefs.getBoolean("snowPref", true)) { com.jetradarmobile.snowfall.SnowfallView snow; snow = findViewById(R.id.snow); snow.setVisibility(View.VISIBLE); }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants