語言

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 屬性授權中所述的詞彙使用。

適用於