1. Introducing Channels - a new way to chat with other Android users!
    Dismiss Notice

Retain previous drawings in a view


Last Updated:

  1. lbana

    lbana New Member This Topic's Starter

    Joined:
    Nov 28, 2010
    Messages:
    1
    Likes Received:
    0
    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...