CardView StrokeWidth adds Padding

Hi guys,

I don’t know if this is a bug, but when I set the StrokeWidth of a CardView to for example 5 and keep repeating that it seems like it adds padding to the CardView and it just gets bigger and bigger. Even if I set the StrokeWidth to 0 afterwards, it doesnt get smaller again.

Any ideas on how to deal with that?

Thanks