Resources.ObtainAttributes(IAttributeSet, Int32[]) メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
AttributeSet から基本的な属性値のセットを取得します。テーマ リソースやスタイル リソースを使用してスタイル設定を実行しません。
[Android.Runtime.Register("obtainAttributes", "(Landroid/util/AttributeSet;[I)Landroid/content/res/TypedArray;", "GetObtainAttributes_Landroid_util_AttributeSet_arrayIHandler")]
public virtual Android.Content.Res.TypedArray? ObtainAttributes(Android.Util.IAttributeSet? set, int[]? attrs);
[<Android.Runtime.Register("obtainAttributes", "(Landroid/util/AttributeSet;[I)Landroid/content/res/TypedArray;", "GetObtainAttributes_Landroid_util_AttributeSet_arrayIHandler")>]
abstract member ObtainAttributes : Android.Util.IAttributeSet * int[] -> Android.Content.Res.TypedArray
override this.ObtainAttributes : Android.Util.IAttributeSet * int[] -> Android.Content.Res.TypedArray
パラメーター
- set
- IAttributeSet
取得する現在の属性値。
- attrs
- Int32[]
取得する特定の属性。 これらの属性 ID は昇順で並べ替える必要があります。
返品
属性値の配列を保持している TypedArray を返します。
完了したら、必ず TypedArray#recycle() TypedArray.recycle() を呼び出してください。
- 属性
注釈
AttributeSet から基本的な属性値のセットを取得します。テーマ リソースやスタイル リソースを使用してスタイル設定を実行しません。
このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。