Activity.OnCreateView メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
| 名前 | 説明 |
|---|---|
| OnCreateView(String, Context, IAttributeSet) |
|
| OnCreateView(View, String, Context, IAttributeSet) |
の標準実装
|
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)を使用する必要があります。
このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。
こちらもご覧ください
- <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 を使用して拡張するときに使用されます。 この実装では、アクティビティ内にフラグメントを埋め込むために <フラグ> タグを処理します。
このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。
こちらもご覧ください
- <xref:Android.Views.LayoutInflater.CreateView(System.String%2c+System.String%2c+System.String)>
- LayoutInflater