語言

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

int

widthAttr
Int32

視圖寬度的維度屬性

屬性

備註

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

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於