ViewGroup.LayoutParams.SetBaseAttributes(TypedArray, Int32, Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
從提供的屬性中擷取版面參數。
[Android.Runtime.Register("setBaseAttributes", "(Landroid/content/res/TypedArray;II)V", "GetSetBaseAttributes_Landroid_content_res_TypedArray_IIHandler")]
protected virtual void SetBaseAttributes(Android.Content.Res.TypedArray a, int widthAttr, int heightAttr);
[<Android.Runtime.Register("setBaseAttributes", "(Landroid/content/res/TypedArray;II)V", "GetSetBaseAttributes_Landroid_content_res_TypedArray_IIHandler")>]
abstract member SetBaseAttributes : Android.Content.Res.TypedArray * int * int -> unit
override this.SetBaseAttributes : Android.Content.Res.TypedArray * int * int -> unit
參數
用 style 屬性來擷取參數
- widthAttr
- Int32
寬度屬性的識別碼
- heightAttr
- Int32
高度屬性的識別碼
- 屬性
備註
從提供的屬性中擷取版面參數。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。