Udostępnij za pośrednictwem


RemoteViews.SetViewLayoutMarginDimen(Int32, Int32, Int32) Method

Definition

Equivalent to calling MarginLayoutParams#setMarginEnd.

[Android.Runtime.Register("setViewLayoutMarginDimen", "(III)V", "GetSetViewLayoutMarginDimen_IIIHandler", ApiSince=31)]
public virtual void SetViewLayoutMarginDimen (int viewId, int type, int dimen);
[<Android.Runtime.Register("setViewLayoutMarginDimen", "(III)V", "GetSetViewLayoutMarginDimen_IIIHandler", ApiSince=31)>]
abstract member SetViewLayoutMarginDimen : int * int * int -> unit
override this.SetViewLayoutMarginDimen : int * int * int -> unit

Parameters

viewId
Int32

The id of the view to change

type
Int32

The margin being set e.g. #MARGIN_END

dimen
Int32

a dimension resource to apply to the margin, or 0 to clear the margin.

Attributes

Remarks

Java documentation for android.widget.RemoteViews.setViewLayoutMarginDimen(int, int, 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.

Applies to