KingKeyboard

constructor(dialog: Dialog, keyboardParentView: ViewGroup? = null)

构造

Parameters

dialog
keyboardParentView

键盘的父布局容器:一般在界面底部,用来容纳键盘布局,如果为空则默将键盘布局添加到 rootView


constructor(activity: ComponentActivity, keyboardParentView: ViewGroup? = null)

构造

Parameters

keyboardParentView

键盘的父布局容器:一般在界面底部,用来容纳键盘布局,如果为空则默将键盘布局添加到 rootView


constructor(window: Window, keyboardParentView: ViewGroup? = null)

构造

Parameters

window
keyboardParentView

键盘的父布局容器:一般在界面底部,用来容纳键盘布局,如果为空则默将键盘布局添加到 rootView


constructor(context: Context, rootView: ViewGroup, keyboardParentView: ViewGroup?)

构造

Parameters

context
rootView

界面的根布局:一般为当前 Window 的根布局,也可以是包含所有的EditText的公共父布局;需要注意的是当构造省略传rootView时,其根布局必须是 ViewGroup或其子类

keyboardParentView

键盘的父布局容器:一般在界面底部,用来容纳键盘布局,如果为空则默将键盘布局添加到 rootView


constructor(context: Context, rootView: ViewGroup, keyboardParentView: ViewGroup?, keyboardContainer: View, @IdRes keyboardViewId: Int)

构造

Parameters

context
rootView

界面的根布局 -> 也可以是当前界面包含所有的EditText的公共父布局;需要注意的是当构造省略传rootView时,其根布局必须是 ViewGroup或其子类

keyboardParentView

键盘的父布局容器 -> 一般在界面底部,用来容纳键盘布局,如果为空则默将键盘布局添加到 rootView

keyboardContainer

键盘的容器

keyboardViewId

KingKeyboard视图控件的ID