private int adjustAlpha(int color,float factor){
  int alpha=Math.round(Color.alpha(color) * factor);
  int red=Color.red(color);
  int green=Color.green(color);
  int blue=Color.blue(color);
  return Color.argb(alpha,red,green,blue);
}

private int adjustAlpha ( int color , float factor ) { int alpha = Math . round ( Color . alpha ( color ) * factor ) ; int red = Color . red ( color ) ; int green = Color . green ( color ) ; int blue = Color . blue ( color ) ; return Color . argb ( alpha , red , green , blue ) ; }
transparent the given color by the factor the more the factor closer to zero the more the color gets transparent
