Android Canvas focus in selected area
问题 I'm trying to achieve this effect: The idea is that I want to cover an ImageView with a partial transparent layer, but not all of it. Somewhere there is an area (circle or rectangle), that should be completely transparent. I tried it using this lines of code: Paint paint = new Paint(); paint.setColor(Color.parseColor("#80000000")); canvas.drawRect(0, 0, bitmap.getWidth(), bitmap.getHeight(), paint); paint.setColor(Color.TRANSPARENT); canvas.drawCircle((int) x, (int) y, 50, paint); but it didn