Android 绘制透明矩形

    Paint paint;
    Rect  spaceRect;

    spaceRect = new Rect();
    spaceRect.set(left, top, right, bottom);

    paint.setStyle(Paint.Style.FILL);
    paint.setAlpha(0);

    c.drawRect(spaceRect, paint);