protected void drawFilledPath(Canvas c,Path filledPath,int fillColor,int fillAlpha){
  c.save();
  c.clipPath(filledPath);
  int color=(fillAlpha << 24) | (fillColor & 0xffffff);
  c.drawColor(color);
  c.restore();
}

protected void drawFilledPath ( Canvas c , Path filledPath , int fillColor , int fillAlpha ) { c . save ( ) ; c . clipPath ( filledPath ) ; int color = ( fillAlpha << 24 ) | ( fillColor & 0xffffff ) ; c . drawColor ( color ) ; c . restore ( ) ; }
draws the provided path in filled mode with the provided color and alpha . special thanks to angelo suzuki ( https : / / github . com / tinsuke ) for this .
