public static int colorWithAlpha(int color,float percent){
  int r=Color.red(color);
  int g=Color.green(color);
  int b=Color.blue(color);
  int alpha=Math.round(percent * 255);
  return Color.argb(alpha,r,g,b);
}

public static int colorWithAlpha ( int color , float percent ) { int r = Color . red ( color ) ; int g = Color . green ( color ) ; int b = Color . blue ( color ) ; int alpha = Math . round ( percent * 255 ) ; return Color . argb ( alpha , r , g , b ) ; }
create a color with alpha ( percent ) + given color
