Citation: http://blog.csdn.net/q445697127/article/details/7736926
Paint paint =NewPaint ();//set Paint to non-aliasedPaint.setantialias (true);//Set ColorPaint.setcolor (color.red);//Set ColorPaint.setcolor (Color.rgb (255, 0, 0));//Set TransparencyPaint.setalpha (256);//Extract ColorColor.Red (0XCCCCCC);//set to another Paint objectPaint.set (NewPaint ());//Set Font sizePaint.settextsize (14);//Hollow Paint.Style.FILL SolidPaint.setstyle (Paint.Style.STROKE);//Hollow outer frame widthPaint.setstrokewidth (5);//Hollow RectangleCanvas.drawrect ((320-80)/2, 20, (320-80)/2 + 80, 20 + 40, paint);//SolidPaint.setstyle (Paint.Style.FILL);//Solid RectangleCanvas.drawrect (0, +, +, + +, paint);
Color
Color.Black://BlackColor.Blue://BlueColor.cyan://Cyan GreenColor.dkgray://Grey-BlackColor.yellow://YellowColor.gray://GreyColor.green://GreenColor.ltgray://Light greyColor.magenta://Red Purplecolor.red://RedColor.White://Whitecolor.transparent://Transparent
Android paint brush and color.