Language

LayoutInflater.IFactory2.OnCreateView メソッド

定義

ビューが作成したビューが配置される親も提供する #onCreateView(String, Context, AttributeSet) のバージョン。

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

パラメーター

parent
View

作成されたビューが配置される親。 <em>これは null</em> である可能性があります。

name
String

増やされるタグ名。

context
Context

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

attrs
IAttributeSet

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

返品

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

属性

注釈

ビューが作成したビューが配置される親も提供する #onCreateView(String, Context, AttributeSet) のバージョン。

Javaドキュメント。

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

適用対象