title: Is there any kind of particle emitter on Android like iOS CAEmitterLayer for circle emitter?
body: <p>My issue is difficult to resolve as of now.</p>
  
  <p>I am supposed to develop an Android application alongside my colleage that does the same thing but on iOS.</p>
  
  <p>At the end of the development, we are supposed to deliver two applications that do the same thing and look alike (be reassured, nothing like iOS guides-lines forced on Android and vice-versa) so that the experience is the same and immersive.</p>
  
  <p>One of the top feature to provide, is a nice looking animation of a white empty circle that emits snow-like particles inside the circle. The circle can move via scrolling or simply bouncing/sliding animation.</p>
  
  <p>So imagine a circle with a white border and white particles going off that white membrane. All those particles are drawn to the center and their speed base is variating (but no accelaration !). The fastest particles are suppose to "die" before reaching the center. Something that can easily be set via settings for lifetime and speed of course.</p>
  
  <p>My partner, who is a junior like me, is using <a href="https://stackoverflow.com/questions/12972658/create-a-circle-of-particles-using-caemitterlayer">iOS' CAEmitterLayer</a> and the results she obtained within a day or two is gorgeous and really close to what we are supposed to achieve.</p>
  
  <p>On my side I am really struggling. Like her, I don't really have any experience in any animation and UI/UX. 
  While looking for a particle generator/emitter on Android, I stumble upon this good-looking library : <a href="https://github.com/plattysoft/Leonids" rel="noreferrer">https://github.com/plattysoft/Leonids</a> and it seems it can offer what I am looking for.</p>
  
  <p>But I have a few unresolved issues using this library :</p>
  
  <ol>
  <li>I cannot or do not know if I can place emitters inside a circle ;</li>
  <li>I believe that if the circle, on which the emitter is hooked, is moving (scroll/animation) there is a strong possibility that the particles won't move with the circle ;</li>
  </ol>
  
  <p>As I said, my iOS colleague resolved these issues. Even the moving part: we were talking with our manager that told use "what if the circble moves ?" and she immediately tried it in front of us. I was blown away...</p>
  
  <p>She told me I should be looking for a way to <strong>contain</strong> my particles inside a container (makes sense ^^) and that my circle view should be clipped with layers so that the particles won't leave the circle especially if the whole thing is moving.</p>
  
  <p>This is what I have achieved this thanks to the aforementioned Android library :</p>
  
  <ol>
  <li>I can emit particles, define their shape, their scale/size, their speed and somewhat the angle of emission ;</li>
  <li>I can hook up a particle emitter to a view. It will use the view <strong>X&amp;Y coordinates</strong> to emit the particles but the problem with a <strong>XML-based circle drawable</strong> like <a href="https://stackoverflow.com/a/16098578/3535408">here</a> is that it's contained inside a <strong>square-based</strong> view (with a <code>height</code> and a <code>width</code>) and for strange reason, my circle is draw above that said squared-based view.</li>
  </ol>
  
  <p>I hope I can find another library but if the current one is working, why not ? Just trying my luck out there ^^</p>
  
  <p>Thanks for the help !</p>