Android canvas: draw transparent circle on image
So finally I managed to do this. Firstly I draw a semitransparent black rectangle on whole view. After that using PorterDuff.Mode.CLEAR I cut a transparent circle to show cat’s position. I had problem with PorterDuff.Mode.CLEAR: firstly I was getting a black circle instead of a transparent one. Thanks to Romain Guy’s comments here: comment here … Read more