語言

Window.ICallback.OnCreatePanelView(Int32) 方法

定義

在面板裡的「featureId」裡實例化顯示的視圖。

[Android.Runtime.Register("onCreatePanelView", "(I)Landroid/view/View;", "GetOnCreatePanelView_IHandler:Android.Views.Window/ICallbackInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Android.Views.View OnCreatePanelView(int featureId);
[<Android.Runtime.Register("onCreatePanelView", "(I)Landroid/view/View;", "GetOnCreatePanelView_IHandler:Android.Views.Window/ICallbackInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member OnCreatePanelView : int -> Android.Views.View

參數

featureId
Int32

是哪個面板正在被創建。

傳回

查看頂層視圖,以便放置於面板中。

屬性

備註

在面板裡的「featureId」裡實例化顯示的視圖。 你可以回傳 null,這樣預設內容(通常是選單)就會自動幫你建立。

Java 文件 android.view.Window.Callback.onCreatePanelView(int)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

另請參閱

  • <xref:Android.Views.Window.ICallback.OnPreparePanel(System.Int32%2c+Android.Views.View%2c+Android.Views.View)>