RemoteViews.SetViewLayoutWidthAttr(Int32, Int32) 方法

定义

等效于在当前主题中设置 android.view.ViewGroup.LayoutParams#width 给定属性的值。

[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

参数

viewId
Int32
widthAttr
Int32

视图宽度的维度属性

属性

注解

Java文档android.widget.RemoteViews.setViewLayoutWidthAttr(int, int)

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于