How can I create rounded corners of card view?

How can I create rounded corners of card view ?

This might help you

When image is background it will not work