📌  相关文章
📜  android 以编程方式显示键盘 - Kotlin 代码示例

📅  最后修改于: 2022-03-11 14:53:33.240000             🧑  作者: Mango

代码示例1
fun View.showKeyboard() = ViewCompat.getWindowInsetsController(this)
    ?.show(WindowInsetsCompat.Type.ime())
    
//Now you can just call editText.showKeyboard() to show the keyboard for the EditText