1. Check out our app, Forums for Android! Download and leave feedback here!

Retain previous drawings in a view

Discussion in 'Android Apps & Games' started by lbana, Nov 28, 2010.

  1. lbana

    lbana New Member
    Thread Starter
    5

    Nov 28, 2010
    1
    0
    5
    Hi all,
    Every time my listener is invoked I get the x, y co-ordinates and performing the drawings on the Canvas by calling invalidate(). I saw few suggestions on invalidating just a rectangle area but I most of the times I just have straight line.

    How do I keep drawing on Canvas without loosing the previous drawings?

    I call canvas.drawLine() method to do the job. I'm also just using simple shapes drawing.

    thanks in advance.
    lb
     

    Advertisement

Share This Page

Loading...