Language

LayoutInflater.IFactory.OnCreateView(String, Context, IAttributeSet) メソッド

定義

LayoutInflater から拡張するときに呼び出されるフックを指定できます。

[Android.Runtime.Register("onCreateView", "(Ljava/lang/String;Landroid/content/Context;Landroid/util/AttributeSet;)Landroid/view/View;", "GetOnCreateView_Ljava_lang_String_Landroid_content_Context_Landroid_util_AttributeSet_Handler:Android.Views.LayoutInflater/IFactoryInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Android.Views.View? OnCreateView(string name, Android.Content.Context context, Android.Util.IAttributeSet attrs);
[<Android.Runtime.Register("onCreateView", "(Ljava/lang/String;Landroid/content/Context;Landroid/util/AttributeSet;)Landroid/view/View;", "GetOnCreateView_Ljava_lang_String_Landroid_content_Context_Landroid_util_AttributeSet_Handler:Android.Views.LayoutInflater/IFactoryInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member OnCreateView : string * Android.Content.Context * Android.Util.IAttributeSet -> Android.Views.View

パラメーター

name
String

増やされるタグ名。

context
Context

ビューが作成されているコンテキスト。

attrs
IAttributeSet

XML ファイルで指定されているインフレーション属性。

返品

新しく作成されたビューを表示します。 既定の動作の場合は null を返します。

属性

注釈

LayoutInflater から拡張するときに呼び出されるフックを指定できます。 これを使用して、XML レイアウト ファイルで使用できるタグ名をカスタマイズできます。

システム名との競合を避けるために、これらのカスタム名の前にパッケージ (com.coolcompany.apps など) を付けておくことをお勧めします。

Javaドキュメント。

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

適用対象