次の方法で共有


ViewGroup.LayoutParams.SetBaseAttributes(TypedArray, Int32, Int32) メソッド

定義

指定された属性からレイアウト パラメーターを抽出します。

[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

パラメーター

a
TypedArray

からパラメーターを抽出するスタイル属性

widthAttr
Int32

width 属性の識別子

heightAttr
Int32

height 属性の識別子

属性

注釈

指定された属性からレイアウト パラメーターを抽出します。

の Java ドキュメントandroid.view.ViewGroup.LayoutParams.setBaseAttributes(android.content.res.TypedArray, int, int)

このページの一部は、Android オープンソース プロジェクトによって作成および共有され、クリエイティブ コモンズ 2.5 属性ライセンスに記載されている条件に従って使用される作業に基づく変更です。

適用対象