RemoteViews.SetViewLayoutWidthAttr(Int32, Int32) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
等效于在当前主题中设置 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)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。