Android create layers in canvas

Android-Droid picture Android-Droid · May 18, 2012 · Viewed 8.8k times · Source

I want to learn how can I create layers (like in photoshop) in my android application. I want to achieve one basic thing: when I add an image in my canvas, which will be some figure for example, I want to be able to paint the canvas, but the painting must not effect the lines of figure. And then I need to save that image on my Sd card.

Any suggestions/advice/examples? What can I use to achieve this?

Answer

Alex picture Alex · May 20, 2012

The order how you paint makes layers. Create some stack of objects what you paint and then modify individual objects (painting in layer) or move them in this stack (changing layers). Use the same order to create your image to save.