setErrorPadding

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

Sets the padding for the error message displayed below the card input fields.

Parameters

startPx

Padding (in pixels) for the left of the error message

topPx

Padding (in pixels) for the top of the error message

endPx

Padding (in pixels) for the right of the error message

bottomPx

Padding (in pixels) for the bottom of the error message

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