InputMethodService.OnCreateInputView 方法

定義

建立並回傳用於輸入區(例如軟性鍵盤)的視圖階層。

[Android.Runtime.Register("onCreateInputView", "()Landroid/view/View;", "GetOnCreateInputViewHandler")]
public virtual Android.Views.View? OnCreateInputView();
[<Android.Runtime.Register("onCreateInputView", "()Landroid/view/View;", "GetOnCreateInputViewHandler")>]
abstract member OnCreateInputView : unit -> Android.Views.View
override this.OnCreateInputView : unit -> Android.Views.View

傳回

屬性

備註

建立並回傳用於輸入區(例如軟性鍵盤)的視圖階層。 當輸入區首次顯示時,會呼叫一次。 你可以回傳 null 讓輸入區域不存在;預設實作回傳 null。

要控制輸入視圖的顯示時間,請實作 #onEvaluateInputViewShown()。 若要在該函式建立第一個輸入視圖後更改輸入視圖,請使用 #setInputView(View)

Java 文件 android.inputmethodservice.InputMethodService.onCreateInputView()

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

適用於