update Margins
fun View.updateMargins(@Px left: Int = marginLeft, @Px top: Int = marginTop, @Px right: Int = marginRight, @Px bottom: Int = marginBottom)
Updates this view's margins.
This view layout params need to be a ViewGroup.MarginLayoutParams, if not will be ignored.
Receiver
Parameters
left
the left margin (px).
top
the top margin (px).
right
the right margin (px).
bottom
the bottom margin (px).
See also
Updates this view's horizontal or vertical margins.
This view layout params need to be a ViewGroup.MarginLayoutParams, if not will be ignored.
Receiver
Parameters
horizontal
the horizontal margin (px).
vertical
the vertical margin (px).
See also
Updates this view's horizontal or vertical margins.
Receiver
Parameters
horizontal
the horizontal margin (px).
vertical
the vertical margin (px).