Code example for Paint

Methods: resetsetAntiAliassetColorsetMaskFiltersetShadersetShadowLayersetStyle

0
    } 
 
    Paint paint = this.paint;
 
    // First of all, render the shadow. 
    paint.reset();
    paint.setAntiAlias(true);
    paint.setColor(0x80000000);
    paint.setShadowLayer(shadowSize * 0.6f, shadowSize, shadowSize, 0xFF404040);
    canvas.drawRect(outerFrameRect, paint);
 
    // Draw the main part of the frame. 
    if (shader != null) {
      paint.reset();
      paint.setAntiAlias(true);
      paint.setShader(shader);
      canvas.drawRect(outerFrameRect, paint);
    } 
 
    // Draw the inner pane. 
    paint.reset();
    paint.setAntiAlias(true);
    paint.setColor(0xFF000000);
    canvas.drawRect(innerFrameRect, paint);
 
    paint.setColor(innerPaneColor);
    paint.setMaskFilter(blurMaskFilter);
    canvas.drawRect(innerFrameRect, paint);
 
    // Draw the border. 
    paint.reset();
    paint.setAntiAlias(true);
    paint.setColor(borderColor);
    paint.setStyle(Style.STROKE);
 
    canvas.drawRect(outerFrameRect, paint);
    canvas.drawRect(innerFrameRect, paint);
  } 
 
Connect your IDE to all the code out there  Get Codota for Java