Just use the MaterialCardView with the app:strokeColor and app:strokeWidth attributes.
Note that without an app:strokeColor, the card will not render a stroked border, regardless of the app:strokeWidth value (the default values are app:strokeColor=@null and app:strokeWidth=0dp).
Something like:
...