Compartir a través de


RemoteViews.SetViewLayoutWidthAttr(Int32, Int32) Method

Definition

Equivalent to setting android.view.ViewGroup.LayoutParams#width with the value of the given attribute in the current theme.

[Android.Runtime.Register("setViewLayoutWidthAttr", "(II)V", "GetSetViewLayoutWidthAttr_IIHandler", ApiSince=31)]
public virtual void SetViewLayoutWidthAttr (int viewId, int widthAttr);
[<Android.Runtime.Register("setViewLayoutWidthAttr", "(II)V", "GetSetViewLayoutWidthAttr_IIHandler", ApiSince=31)>]
abstract member SetViewLayoutWidthAttr : int * int -> unit
override this.SetViewLayoutWidthAttr : int * int -> unit

Parameters

viewId
Int32
widthAttr
Int32

the dimension attribute for the view's width

Attributes

Remarks

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