View.SaveAttributeDataForStyleable メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
属性に関するデバッグ情報を格納します。
[Android.Runtime.Register("saveAttributeDataForStyleable", "(Landroid/content/Context;[ILandroid/util/AttributeSet;Landroid/content/res/TypedArray;II)V", "", ApiSince=29)]
public void SaveAttributeDataForStyleable (Android.Content.Context context, int[] styleable, Android.Util.IAttributeSet? attrs, Android.Content.Res.TypedArray t, int defStyleAttr, int defStyleRes);
[<Android.Runtime.Register("saveAttributeDataForStyleable", "(Landroid/content/Context;[ILandroid/util/AttributeSet;Landroid/content/res/TypedArray;II)V", "", ApiSince=29)>]
member this.SaveAttributeDataForStyleable : Android.Content.Context * int[] * Android.Util.IAttributeSet * Android.Content.Res.TypedArray * int * int -> unit
パラメーター
- context
- Context
このビューが作成されるコンテキスト。
- styleable
- Int32[]
スタイル可能な配列 R.styleable.Foo への参照
- attrs
- IAttributeSet
このビューの構築に使用される AttributeSet。
へのResources#obtainAttributes(AttributeSet, int[])
呼び出しによって返される解決済TypedArray
み。
- defStyleAttr
- Int32
ビュー コンストラクターに渡される既定のスタイル属性。
- defStyleRes
- Int32
ビュー コンストラクターに渡される既定のスタイル リソース。
- 属性
注釈
属性に関するデバッグ情報を格納します。 これは、カスタム スタイル可能を使用するすべてのカスタム View
によってコンストラクターで呼び出される必要があります。 カスタム ビューで呼び出されない場合、このビューで使用されるカスタム属性はレイアウト検査ツールに表示されません。
このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。