question: public static int convertToColorInt ( String a , String r , String g , String b , boolean useAlpha ) { int alpha = useAlpha ? Integer . parseInt ( a , 16 ) : 0xff ; int red = Integer . parseInt ( r , 16 ) ; int green = Integer . parseInt ( g , 16 ) ; int blue = Integer . parseInt ( b , 16 ) ; return Color . argb ( useAlpha ? alpha : - 1 , red , green , blue ) ; }
target:  Concerts a String color (#ff882465) to an int color