getMarginEnd

On platform versions supporting bidirectional text and layouts
this value will be resolved into the LayoutParams object's left or right
margin as appropriate when the associated View is attached to a window
or when the layout direction of that view changes.

Parameters

lp

ViewGroup.MarginLayoutParams: LayoutParams to query

Returns

int

the margin along the ending edge in pixels

getMarginStart

On platform versions supporting bidirectional text and layouts
this value will be resolved into the LayoutParams object's left or right
margin as appropriate when the associated View is attached to a window
or when the layout direction of that view changes.

setMarginEnd

On platform versions supporting bidirectional text and layouts
this value will be resolved into the LayoutParams object's left or right
margin as appropriate when the associated View is attached to a window
or when the layout direction of that view changes.

Parameters

lp

ViewGroup.MarginLayoutParams: LayoutParams to query

marginEnd

int: the desired end margin in pixels

setMarginStart

On platform versions supporting bidirectional text and layouts
this value will be resolved into the LayoutParams object's left or right
margin as appropriate when the associated View is attached to a window
or when the layout direction of that view changes.