Activity.OnCreateView メソッド

定義

オーバーロード

名前 説明
OnCreateView(String, Context, IAttributeSet)

android.view.LayoutInflater.Factory#onCreateViewの標準実装は、#getSystemServiceによって返される LayoutInflater を使用して拡張するときに使用されます。

OnCreateView(View, String, Context, IAttributeSet)

の標準実装 android.view.LayoutInflater.Factory2#onCreateView(View, String, Context, AttributeSet) は、 #getSystemServiceによって返される LayoutInflater を使用して拡張するときに使用されます。

OnCreateView(String, Context, IAttributeSet)

android.view.LayoutInflater.Factory#onCreateViewの標準実装は、#getSystemServiceによって返される 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")]
public virtual 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")>]
abstract member OnCreateView : string * Android.Content.Context * Android.Util.IAttributeSet -> Android.Views.View
override this.OnCreateView : string * Android.Content.Context * Android.Util.IAttributeSet -> Android.Views.View

パラメーター

name
String

増やされるタグ名。

context
Context

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

attrs
IAttributeSet

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

返品

実装

属性

注釈

android.view.LayoutInflater.Factory#onCreateViewの標準実装は、#getSystemServiceによって返される LayoutInflater を使用して拡張するときに使用されます。 この実装では何も行われないため、android.os.Build.VERSION_CODES#HONEYCOMB 前のアプリ用です。 新しいアプリでは、 #onCreateView(View, String, Context, AttributeSet)を使用する必要があります。

Javaドキュメント。

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

こちらもご覧ください

  • <xref:Android.Views.LayoutInflater.CreateView(System.String%2c+System.String%2c+System.String)>
  • LayoutInflater

適用対象

OnCreateView(View, String, Context, IAttributeSet)

の標準実装 android.view.LayoutInflater.Factory2#onCreateView(View, String, Context, AttributeSet) は、 #getSystemServiceによって返される LayoutInflater を使用して拡張するときに使用されます。

[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")]
public virtual 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")>]
abstract member OnCreateView : Android.Views.View * string * Android.Content.Context * Android.Util.IAttributeSet -> Android.Views.View
override this.OnCreateView : Android.Views.View * string * Android.Content.Context * Android.Util.IAttributeSet -> Android.Views.View

パラメーター

parent
View

作成されたビューが配置される親。 これは null である可能性があることに注意してください

name
String

増やされるタグ名。

context
Context

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

attrs
IAttributeSet

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

返品

実装

属性

注釈

android.view.LayoutInflater.Factory2#onCreateView(View, String, Context, AttributeSet)の標準実装は、#getSystemServiceによって返される LayoutInflater を使用して拡張するときに使用されます。 この実装では、アクティビティ内にフラグメントを埋め込むために <フラグ> タグを処理します。

Javaドキュメント。

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

こちらもご覧ください

  • <xref:Android.Views.LayoutInflater.CreateView(System.String%2c+System.String%2c+System.String)>
  • LayoutInflater

適用対象