code: private void setDrawWithLayer(View v, boolean drawWithLayer) {
  		if (isHardwareAccelerated()) {
  			if (v.getLayerType() != LAYER_TYPE_HARDWARE && drawWithLayer) {
  				v.setLayerType(LAYER_TYPE_HARDWARE, null);
  			} else if (v.getLayerType() != LAYER_TYPE_NONE && !drawWithLayer) {
  				v.setLayerType(LAYER_TYPE_NONE, null);
  			}
  		}
  	}
docs: Enable a hardware layer for the view.
  
  @param v
  @param drawWithLayer