This is an example of how it could have been done previously in the ListView class, using the divider and dividerHeight parame
ListView
This doesn't actually solve the problem, but as a temporary workaround, you can set the useCompatPadding property on the card in your XML layout to make it measure the same as it does on pre-Lollipop versions.
card_view:cardUseCompatPadding="true"