I am using a cardview as the root of a custom view I am writing. I using the v7 support library. My XML looks like this:
I know it's a bit late, but for anyone having a similar problem:
I had the same issue: A white border was shown on pre-lollipop devices.
I solved it setting the cardPreventCornerOverlap to false on your XML.
false
Like this:
Hope this helps!