共用方式為


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)的版本也提供檢視所建立檢視將放置於的父系。

android.view.LayoutInflater.Factory2.onCreateView(android.view.View, java.lang.String, android.content.Context, android.util.AttributeSet)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於