setLayoutMarginEnd

fun View.setLayoutMarginEnd(margin: Int?)

Set the relative end margin of the View to the given margin, if margin is not null. If margin is null, the relate end margin of the view is not set.

See also