FragmentController.OnCreateView(View, String, Context, IAttributeSet) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
實現碎片的視角。
[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
參數
- parent
- View
所建立視圖將被放置的父檔案; <EM>請注意,這可能是 null</em>。
- name
- String
標籤名稱會被誇大。
- context
- Context
視圖所建立的情境。
- attrs
- IAttributeSet
膨脹屬性依XML檔案所指定。
傳回
查看新建立的視圖
- 屬性
備註
實現碎片的視角。
Android 參考資料。android.app.FragmentController.onCreateView
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。