Android OnTouch events numerous Objects?

First things first, start with this: public class Circle { public int x; public int y; public double radius; public Paint paint; /* constructors, getters & setters if you feel like ...*/ } And put all your circles in a ArrayList circles = new ArrayList(); public void onDraw(Canvas canvas) { /*...*/ Iterator iterator = circles.iterator(); while(iterator.hasNext()) { drawCircle(iterator.next()); } } public void drawCircle(Canvas canvas, Circle circle) { canvas. DrawCircle(circle. X, circle.

Y, circle. Raidus, circle. Paint); }.

Actually I think that would work.. As I was doing this and creating 10 or so circles.. I started to want to build a particle system (although unsure of performance using View/Paint vs. OpenGL). So I'm trying to find an efficent method to creating 1000+ or so objects (particles). I think I'll give this a shot and see what happens, right now just with cirlces.Thanks.. – DJPlayer Sep 28 at 13:46.

Ok I'm playing w/ ontouch events extending a view. What I've done is made a circle on touch.. the cirlce will follow as you move. As you move another circle is made and will sit in the postion decrementing the radius until it disappears.. (right now up to like 10 circles).

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions