createColorDrawable

decode solid color / gradient / border drawable from string like #AARRGGBB, e.g. #5599AA

SolidFillDrawable: #AARRGGBB - e.g. #8090A0 or #80ffffff GradientDrawable: #linear,Ndeg,firstColor,secondColor BorderDrawable: #border,borderColor,borderWidth[,middleColor] or #border,borderColor,leftBorderWidth,topBorderWidth,rightBorderWidth,bottomBorderWidth[,middleColor] e.g. #border,#000000,2,#C0FFFFFF - black border of width 2 with 75% transparent white middle e.g. #border,#0000FF,2,3,4,5,#FFFFFF - blue border with left,top,right,bottom borders of width 2,3,4,5 and white inner area

static
createColorDrawable
(
string s
)

Meta