View.SaveAttributeDataForStyleable メソッド

定義

属性に関するデバッグ情報を格納します。

[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。

t
TypedArray

へのResources#obtainAttributes(AttributeSet, int[])呼び出しによって返される解決済TypedArrayみ。

defStyleAttr
Int32

ビュー コンストラクターに渡される既定のスタイル属性。

defStyleRes
Int32

ビュー コンストラクターに渡される既定のスタイル リソース。

属性

注釈

属性に関するデバッグ情報を格納します。 これは、カスタム スタイル可能を使用するすべてのカスタム View によってコンストラクターで呼び出される必要があります。 カスタム ビューで呼び出されない場合、このビューで使用されるカスタム属性はレイアウト検査ツールに表示されません。

の Java ドキュメント android.view.View.saveAttributeDataForStyleable(android.content.Context, int[], android.util.AttributeSet, android.content.res.TypedArray, int, int)

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象