/** * Adds the editable. * * @param hv the hv * @param imageMatrix the image matrix * @param cropRect the crop rect */ private void addEditable(DrawableHighlightView hv, Matrix imageMatrix, RectF cropRect) { final ImageViewDrawableOverlay image = (ImageViewDrawableOverlay) mImageView; hv.setRotateAndScale(true); hv.showAnchors(false); hv.drawOutlineFill(false); hv.drawOutlineStroke(false); hv.setup(imageMatrix, null, cropRect, false); hv.getOutlineFillPaint() .setXfermode(new PorterDuffXfermode(android.graphics.PorterDuff.Mode.SRC_ATOP)); hv.setMinSize(10); hv.setOutlineFillColor( new ColorStateList(new int[][] {{android.R.attr.state_active}}, new int[] {0})); hv.setOutlineStrokeColor( new ColorStateList(new int[][] {{android.R.attr.state_active}}, new int[] {0})); image.addHighlightView(hv); }