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

updateMarginsRelative

inline fun MarginLayoutParams.updateMarginsRelative(@Px start: Int = marginStart, @Px top: Int = topMargin, @Px end: Int = marginEnd, @Px bottom: Int = bottomMargin): Unit

Updates the relative margins in the ViewGroup's MarginLayoutParams. This version of the method allows using named parameters to just set one or more axes.

See Also

ViewGroup.MarginLayoutParams.setMargins