Skip to content
This repository has been archived by the owner on Feb 8, 2022. It is now read-only.

How to get rounded corner #24

Open
viveksinha121 opened this issue Feb 21, 2017 · 3 comments
Open

How to get rounded corner #24

viveksinha121 opened this issue Feb 21, 2017 · 3 comments

Comments

@viveksinha121
Copy link

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.

@ViRu-ThE-ViRuS
Copy link

yes pls specify

@iplusMario
Copy link

in onFinishInflate()

change

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

for

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

@harmeetsingh-work
Copy link

This should have been included in the lib.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants