LayoutInflater コンストラクター
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
| 名前 | 説明 |
|---|---|
| LayoutInflater(Context) |
特定のコンテキストに関連付けられた新しい LayoutInflater インスタンスを作成します。 |
| LayoutInflater(LayoutInflater, Context) |
必要に応じてコンテキストを変更して、既存の LayoutInflater のコピーである新しい LayoutInflater インスタンスを作成します。 |
| LayoutInflater(IntPtr, JniHandleOwnership) |
JNI オブジェクトのマネージド表現を作成するときに使用されるコンストラクター。ランタイムによって呼び出されます。 |
LayoutInflater(Context)
特定のコンテキストに関連付けられた新しい LayoutInflater インスタンスを作成します。
[Android.Runtime.Register(".ctor", "(Landroid/content/Context;)V", "")]
protected LayoutInflater(Android.Content.Context? context);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;)V", "")>]
new Android.Views.LayoutInflater : Android.Content.Context -> Android.Views.LayoutInflater
パラメーター
- context
- Context
この LayoutInflater がビューを作成するコンテキスト。最も重要なのは、属性の既定値を取得するテーマを提供することです。
- 属性
注釈
特定のコンテキストに関連付けられた新しい LayoutInflater インスタンスを作成します。 アプリケーションは、ほとんどの場合、標準のContext#getSystemService Context.getSystemService()を取得するためにContext#LAYOUT_INFLATER_SERVICE Context.INFLATER_SERVICEを使用したいと考えています。
このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。
適用対象
LayoutInflater(LayoutInflater, Context)
必要に応じてコンテキストを変更して、既存の LayoutInflater のコピーである新しい LayoutInflater インスタンスを作成します。
[Android.Runtime.Register(".ctor", "(Landroid/view/LayoutInflater;Landroid/content/Context;)V", "")]
protected LayoutInflater(Android.Views.LayoutInflater? original, Android.Content.Context? newContext);
[<Android.Runtime.Register(".ctor", "(Landroid/view/LayoutInflater;Landroid/content/Context;)V", "")>]
new Android.Views.LayoutInflater : Android.Views.LayoutInflater * Android.Content.Context -> Android.Views.LayoutInflater
パラメーター
- original
- LayoutInflater
コピーする元の LayoutInflater。
- newContext
- Context
使用する新しいコンテキスト。
- 属性
注釈
必要に応じてコンテキストを変更して、既存の LayoutInflater のコピーである新しい LayoutInflater インスタンスを作成します。
#cloneInContextの実装に使用します。
このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。
適用対象
LayoutInflater(IntPtr, JniHandleOwnership)
JNI オブジェクトのマネージド表現を作成するときに使用されるコンストラクター。ランタイムによって呼び出されます。
protected LayoutInflater(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Views.LayoutInflater : nativeint * Android.Runtime.JniHandleOwnership -> Android.Views.LayoutInflater
パラメーター
- transfer
- JniHandleOwnership
JniHandleOwnership処理方法を示すjavaReference
注釈
このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。