Language

Activity.OnCreateView メソッド

定義

オーバーロード

Name 説明
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 を使用して拡張するときに使用されます。

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

インフレするタグ名。 この値は null にすることはできません。

context
Context

ビューが作成されるコンテキスト。 この値は null にすることはできません。

attrs
IAttributeSet

XML ファイルで指定されたインフレーション属性。 この値は null にすることはできません。

戻り値

この値は null である可能性があります。

実装

属性

注釈

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

android.app.Activity.onCreateViewの Android リファレンス。

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

関連項目

適用対象

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

インフレするタグ名。 この値は null にすることはできません。

context
Context

ビューが作成されるコンテキスト。 この値は null にすることはできません。

attrs
IAttributeSet

XML ファイルで指定されたインフレーション属性。 この値は null にすることはできません。

戻り値

この値は null である可能性があります。

実装

属性

注釈

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

android.app.Activity.onCreateViewの Android リファレンス。

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

関連項目

適用対象