言語

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

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

defStyleAttr
Int32

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

defStyleRes
Int32

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

属性

注釈

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

Javaドキュメント。

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

適用対象