// draw the shape
Path path = new Path(device);
path.moveTo(width / 2, 25);
path.lineTo(2 * width / 3, height / 3);
path.lineTo(width - 25, height / 2);
path.lineTo(2 * width / 3, 2 * height / 3);
path.lineTo(width / 2, height - 25);
path.lineTo(width / 3, 2 * height / 3);
path.lineTo(25, height / 2);
path.lineTo(width / 3, height / 3);
path.lineTo(width / 2, 25);