I can draw a line using the ontouch method and the rubber-band thingy works, but how would I make the drawn line into an object and add it to my ArrayList? Also, I'm gonna need to apply that to two more shape types(Circle, and Rectangle)
My code for onTouchEvent(So I can take the line that I draw, make an object of it, then store it in my arraylist called shapeArray.
public boolean onTouchEvent(MotionEvent event)
// get the current X and Y position from the event
currentX = event.getX();
currentY = event.getY();
// switch on the touch event action
// start the line
startX = currentX;
startY = currentY;
// this is what should be storing drawn lines as objects in an Arraylist.
MyLine aline = new MyLine(startX, startY, currentX, currentY, color);
deltaX = currentX - startX;
deltaY = currentY - startY;