Udostępnij za pośrednictwem


LayoutInflater.IFactory2.OnCreateView Method

Definition

Version of #onCreateView(String, Context, AttributeSet) that also supplies the parent that the view created view will be placed in.

[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

Parameters

parent
View

The parent that the created view will be placed in; <em>note that this may be null</em>.

name
String

Tag name to be inflated.

context
Context

The context the view is being created in.

attrs
IAttributeSet

Inflation attributes as specified in XML file.

Returns

View Newly created view. Return null for the default behavior.

Attributes

Remarks

Version of #onCreateView(String, Context, AttributeSet) that also supplies the parent that the view created view will be placed in.

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

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to