The answer received by Dheeraj has the answer to your question:
fooobar.com/questions/1117791 / ...
Here is a copy and paste of his answer:
, , , .
, , :
Path path1 = new Path();
path1.addCircle(10, 10, 4, Path.Direction.CW);
Path path2 = new Path();
path2.addCircle(15, 15, 8, Path.Direction.CW);
Region region1 = new Region();
region1.setPath(path1, clip);
Region region2 = new Region();
region2.setPath(path2, clip);
if (!region1.quickReject(region2) && region1.op(region2, Region.Op.INTERSECT)) {
}
, drawPath(). () .
, "clip" .
Region clip = new Region(0, 0, layoutWidth, layoutHeight);
- .