Adding Undo feature in FingerPaint program bundled with APId

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

Adding Undo feature in FingerPaint program bundled with APId

Postby Monu » Wed Oct 07, 2009 9:01 am

I am playing with the FingerPaint application that comes bundled with the API demos package. I was wondering if I could add an "Undo" feature to it, which would allow the user to remove/undo his latest stroke drawing from the canvas. I am not sure of how to achieve this though.

I was looking at the android.graphics.Canvas class and therein I found a few methods that caught my interest.
Canvas.restore() and Canvas.save(). But they dont work the way, I believed they should.

If anyone here has done anything similar and can help me, I'd be obliged.

Thanks.
Monu
Freshman
Freshman
 
Posts: 8
Joined: Thu Jan 08, 2009 7:33 am

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 7 guests