public void setOverlayEnabled ( boolean enabled ) { if ( enabled != this . enabled ) { if ( Build . VERSION . SDK_INT >= HONEYCOMB ) { layerize ( enabled ) ; } this . enabled = enabled ; if ( ! enabled ) { canvasDelegate . clearCache ( ) ; } invalidate ( ) ; // Trigger a re-draw so we see the grid. } }
Set whether the pixel grid overlay is enabled .