RemoteViews.SetViewLayoutMargin(Int32, Int32, Single, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Equivalent to calling MarginLayoutParams#setMarginEnd
.
[Android.Runtime.Register("setViewLayoutMargin", "(IIFI)V", "GetSetViewLayoutMargin_IIFIHandler", ApiSince=31)]
public virtual void SetViewLayoutMargin (int viewId, int type, float value, int units);
[<Android.Runtime.Register("setViewLayoutMargin", "(IIFI)V", "GetSetViewLayoutMargin_IIFIHandler", ApiSince=31)>]
abstract member SetViewLayoutMargin : int * int * single * int -> unit
override this.SetViewLayoutMargin : int * int * single * int -> unit
Parameters
- viewId
- Int32
The id of the view to change
- type
- Int32
The margin being set e.g. #MARGIN_END
- value
- Single
a value for the margin the given units.
- units
- Int32
The unit type of the value e.g. TypedValue#COMPLEX_UNIT_DIP
- Attributes
Remarks
Java documentation for android.widget.RemoteViews.setViewLayoutMargin(int, int, float, int)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.