I made a simple drawing app with which I can draw lines on a canvas. Now I wanted to add various color selection buttons. The problem I now have is that if I click on a color button and continue drawing all the previous drawn lines also change its color to the newly selected color.
I found some forum posts about using a paint (or path) list for that purpose. however, I could not entirely understand the solution. Could anyone post some code of a working example?
Thank you very much in advance.
Try this, I have done it and it works great for me.