ShowcaseView icon indicating copy to clipboard operation
ShowcaseView copied to clipboard

Change showcase form

Open mrkiwi opened this issue 9 years ago • 1 comments

Hello. Is there any way to change the form of showcase? We have circle as default form, but I need rectangle to show the textview element. I tried to implement ShowcaseDrawer and create a custom showcaseview but the showcase not displays correctly - background overlaps showcase. Here is my code: public CustomShowcaseView(Resources resources) { width = resources.getDimension(R.dimen.custom_showcase_width); height = resources.getDimension(R.dimen.custom_showcase_height); PorterDuffXfermode xfermode = new PorterDuffXfermode(PorterDuff.Mode.MULTIPLY); eraserPaint = new Paint(); eraserPaint.setColor(0xFFFFFF); eraserPaint.setAlpha(0); eraserPaint.setXfermode(xfermode); eraserPaint.setAntiAlias(true); eraseColour = resources.getColor(R.color.custom_showcase_bg); basicPaint = new Paint(); renderRect = new RectF(); } I would be grateful for any help.

mrkiwi avatar Oct 31 '16 17:10 mrkiwi

you can but making custom showcaseDrawer. you can follow the example and CustomShowcaseActivity file which is an example of defining rectangle instead of circle. https://github.com/amlcurran/ShowcaseView/blob/master/sample/src/main/java/com/github/amlcurran/showcaseview/sample/CustomShowcaseActivity.java

nadia-am avatar Dec 11 '17 06:12 nadia-am