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
int
- widthAttr
- Int32
視圖寬度的維度屬性
- 屬性
備註
Java 文件 android.widget.RemoteViews.setViewLayoutWidthAttr(int, int)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。