core-ktx / androidx.view / android.view.ViewGroup.MarginLayoutParams / setMargins

setMargins

inline fun MarginLayoutParams.setMargins(@Px size: Int): Unit

Sets the margins in the ViewGroup's MarginLayoutParams. This version of the method sets all axes to the provided size.

See Also

ViewGroup.MarginLayoutParams.setMargins