Implementing an eraser in an Android drawing app - black trail and then transparent
I have an drawing app for Android and I am currently trying to add a real eraser to it. Before, I had just used white paint for an eraser, but that won't do anymore since now I allow background colors and images. I do this by having an image view underneath my transparent canvas. The problem that I am facing is that whenever I enable my eraser, it draws a solid black trail while I have my finger down, but once I release it goes to transparent. See the screen shots below: This is how it looks while my finger is on the screen - a solid black trail This is what it looks like once I remove my