Function createColorDrawable
decode solid color / gradient / frame drawable from string like #AARRGGBB, e.g. #5599AA
Prototype
static Drawable createColorDrawable(
string s
);
SolidFillDrawable
#AARRGGBB - e.g. #8090A0 or #80ffffff
FrameDrawable
#frameColor,frameWidth[,#middleColor]
or #frameColor,leftBorderWidth,topBorderWidth,rightBorderWidth,bottomBorderWidth[,#middleColor]
e.g. #000000,2,#C0FFFFFF - black frame of width 2 with 75% transparent white middle
e.g. #0000FF,2,3,4,5,#FFFFFF - blue frame with left,top,right,bottom borders of width 2,3,4,5 and white inner area
Authors
Vadim Lopatin, coolreader.org@gmail.com
Copyright
Vadim Lopatin, 2014
License
Boost License 1.0