java.lang.Object | |
↳ | android.support.v4.view.MarginLayoutParamsCompat |
Helper for accessing API features in
MarginLayoutParams
added after API 4.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Retuns the layout direction.
| |||||||||||
Get the relative ending margin that was set.
| |||||||||||
Get the relative starting margin that was set.
| |||||||||||
Check if margins are relative.
| |||||||||||
This will be called by
requestLayout() . | |||||||||||
Set the layout direction.
| |||||||||||
Set the relative end margin.
| |||||||||||
Set the relative start margin.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Retuns the layout direction. Can be either LAYOUT_DIRECTION_LTR
or
LAYOUT_DIRECTION_RTL
.
Get the relative ending margin that was set.
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.
lp | LayoutParams to query |
---|
Get the relative starting margin that was set.
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.
lp | LayoutParams to query |
---|
Check if margins are relative.
This will be called by requestLayout()
. Left and Right margins
may be overridden depending on layout direction.
Set the layout direction.
layoutDirection | the layout direction.
Should be either LAYOUT_DIRECTION_LTR
or LAYOUT_DIRECTION_RTL .
|
---|
Set the relative end margin.
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.
lp | LayoutParams to query |
---|---|
marginEnd | the desired end margin in pixels |
Set the relative start margin.
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.
lp | LayoutParams to query |
---|---|
marginStart | the desired start margin in pixels |