FragmentController.OnCreateView(View, String, Context, IAttributeSet) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Instantiates a Fragment's view.
[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", ApiSince=23)]
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", ApiSince=23)>]
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
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 the newly created view
- Attributes
Remarks
Instantiates a Fragment's view.
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.