Udostępnij za pośrednictwem


RemoteViews.SetViewLayoutMarginAttr(Int32, Int32, Int32) Method

Definition

Equivalent to calling MarginLayoutParams#setMarginEnd.

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

Parameters

viewId
Int32

The id of the view to change

type
Int32

The margin being set e.g. #MARGIN_END

attr
Int32

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

Attributes

Remarks

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