語言

TextView.ShowSoftInputOnFocus 屬性

定義

傳回當這個 TextView 取得焦點時,是否會顯示軟式輸入法。 -或- 設定當這個 TextView 取得焦點時,是否會顯示軟式輸入法。

public bool ShowSoftInputOnFocus { [Android.Runtime.Register("getShowSoftInputOnFocus", "()Z", "")] get; [Android.Runtime.Register("setShowSoftInputOnFocus", "(Z)V", "")] set; }
[<get: Android.Runtime.Register("getShowSoftInputOnFocus", "()Z", "")>]
[<set: Android.Runtime.Register("setShowSoftInputOnFocus", "(Z)V", "")>]
member this.ShowSoftInputOnFocus : bool with get, set

屬性值

boolean

屬性

備註

財產取得者文件:

傳回當這個 TextView 取得焦點時,是否會顯示軟式輸入法。 預設值為 True。

Java 文件 android.widget.TextView.getShowSoftInputOnFocus()

屬性設定文件:

設定當 TextView 聚焦時,軟輸入法是否會顯示。 預設值為 True。

Java 文件 android.widget.TextView.setShowSoftInputOnFocus(boolean)

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

適用於