AndroidTagGroup icon indicating copy to clipboard operation
AndroidTagGroup copied to clipboard

How to change the shape of the tag from oval to rectangle?

Open kanagalingam opened this issue 7 years ago • 1 comments

@2dxgujun Hi,

we have been using your library and we want to know about changing the tag view shape from oval to rectangle.

Could you please assist us on this !

kanagalingam avatar Oct 24 '17 11:10 kanagalingam

I've seen in the TagView's onDraw that he put by default the rounded corner. What you can do is creating a new one without those lines... canvas.drawArc(mLeftCornerRectF, -180, 90, true, mBackgroundPaint); canvas.drawArc(mLeftCornerRectF, -270, 90, true, mBackgroundPaint); canvas.drawArc(mRightCornerRectF, -90, 90, true, mBackgroundPaint); canvas.drawArc(mRightCornerRectF, 0, 90, true, mBackgroundPaint);

It could be fantastic to decide if you want it rounded or not with an attribute.

GrindingOgre avatar Feb 02 '18 11:02 GrindingOgre