@@ -159,7 +159,6 @@ public ParticleSystem(Activity a, int maxParticles, AnimationDrawable animation,
159
159
* Adds a modifier to the Particle system, it will be executed on each update.
160
160
*
161
161
* @param modifier
162
- * @return
163
162
*/
164
163
public ParticleSystem addModifier (ParticleModifier modifier ) {
165
164
mModifiers .add (modifier );
@@ -226,7 +225,7 @@ public ParticleSystem setStartTime(int time) {
226
225
/**
227
226
* Configures a fade out for the particles when they disappear
228
227
*
229
- * @param duration fade out duration in miliseconds
228
+ * @param milisecondsBeforeEnd fade out duration in miliseconds
230
229
* @param interpolator the interpolator for the fade out (default is linear)
231
230
*/
232
231
public ParticleSystem setFadeOut (long milisecondsBeforeEnd , Interpolator interpolator ) {
@@ -250,7 +249,6 @@ public ParticleSystem setFadeOut(long duration) {
250
249
* @param emiter View from which center the particles will be emited
251
250
* @param gravity Which position among the view the emission takes place
252
251
* @param particlesPerSecond Number of particles per second that will be emited (evenly distributed)
253
- * @param timeToLive miliseconds the particles will be displayed
254
252
* @param emitingTime time the emiter will be emiting particles
255
253
*/
256
254
public void emitWithGravity (View emiter , int gravity , int particlesPerSecond , int emitingTime ) {
@@ -265,7 +263,6 @@ public void emitWithGravity (View emiter, int gravity, int particlesPerSecond, i
265
263
*
266
264
* @param emiter View from which center the particles will be emited
267
265
* @param particlesPerSecond Number of particles per second that will be emited (evenly distributed)
268
- * @param timeToLive miliseconds the particles will be displayed
269
266
* @param emitingTime time the emiter will be emiting particles
270
267
*/
271
268
public void emit (View emiter , int particlesPerSecond , int emitingTime ) {
@@ -457,7 +454,7 @@ else if (hasGravity(gravity, Gravity.CENTER_VERTICAL)){
457
454
else {
458
455
// All the range
459
456
mEmiterYMin = location [1 ] - mParentLocation [1 ];
460
- mEmiterYMax = location [1 ] + emiter .getWidth () - mParentLocation [1 ];
457
+ mEmiterYMax = location [1 ] + emiter .getHeight () - mParentLocation [1 ];
461
458
}
462
459
}
463
460
0 commit comments