MaterialTextField icon indicating copy to clipboard operation
MaterialTextField copied to clipboard

How to get rounded corner

Open viveksinha121 opened this issue 8 years ago • 3 comments

I followed the instruction as given. In your demo screen corner are rounded but in my case corner are not rounded. How to achieve that.

viveksinha121 avatar Feb 21 '17 06:02 viveksinha121

yes pls specify

ViRu-ThE-ViRuS avatar Jun 14 '17 16:06 ViRu-ThE-ViRuS

in onFinishInflate()

change

    if (backgroundColor != -1) {
        card.setBackgroundColor(backgroundColor);
    }

for

    if (backgroundColor != -1) {
        card.getBackground().setColorFilter(backgroundColor, PorterDuff.Mode.SRC_IN);
    }

iplusMario avatar Jun 21 '17 09:06 iplusMario

This should have been included in the lib.

harmeetsingh-work avatar Apr 23 '18 12:04 harmeetsingh-work