AndroidTagGroup
AndroidTagGroup copied to clipboard
How to change the shape of the tag from oval to rectangle?
@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 !
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.