语言

Window.SetSoftInputMode(SoftInput) 方法

定义

根据此窗口指定要用于窗口 WindowManager.LayoutParams#softInputMode WindowManager.LayoutParams.softInputMode的显式软输入模式。

[Android.Runtime.Register("setSoftInputMode", "(I)V", "GetSetSoftInputMode_IHandler")]
public virtual void SetSoftInputMode(Android.Views.SoftInput mode);
[<Android.Runtime.Register("setSoftInputMode", "(I)V", "GetSetSoftInputMode_IHandler")>]
abstract member SetSoftInputMode : Android.Views.SoftInput -> unit
override this.SetSoftInputMode : Android.Views.SoftInput -> unit

参数

mode
SoftInput

用于模式的 Android.Views.SoftInput 值。

特性

注解

根据此窗口指定要用于窗口 WindowManager.LayoutParams#softInputMode WindowManager.LayoutParams.softInputMode的显式软输入模式。 在此处提供“未指定”以外的任何内容将覆盖窗口通常从其主题中检索的输入模式。

Java文档android.view.Window.setSoftInputMode(int)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于