setCardPadding

fun setCardPadding(startPx: Int?, topPx: Int?, endPx: Int?, bottomPx: Int?)

Sets the padding for the area immediately surrounding the card input fields.

Parameters

startPx

Padding (in pixels) for the left of the card input area

topPx

Padding (in pixels) for the top of the card input area

endPx

Padding (in pixels) for the right of the card input area

bottomPx

Padding (in pixels) for the bottom of the card input area (the area between the bottom of the input fields and the error message)

NOTE: If you want to set the padding around the entire control (including around the error message) use View.setPadding()