You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, i'm using Leonids to create background raining animation.
The problem is that all particles are running from the top left corner one by one. Can you help me handle it?
new ParticleSystem(MainActivity.this, 50, R.mipmap.ic_launcher, 5000)
.setAcceleration(0.00013f, 90)
.setSpeedByComponentsRange(0f, 0f, 0.05f, 0.1f)
.setFadeOut(200, new AccelerateInterpolator())
.emitWithGravity((Button)findViewById(R.id.mainForeground), Gravity.BOTTOM, 20);
The text was updated successfully, but these errors were encountered:
The most likely problem is that you are starting the emitter inside onCreate or onStart.
At that moment, the views are not yet measured, therefore the system read the width of the view as 0.
You need to wait until the views are measured. Check out #22
Hi, i'm using Leonids to create background raining animation.
The problem is that all particles are running from the top left corner one by one. Can you help me handle it?
The text was updated successfully, but these errors were encountered: