【发布时间】:2021-06-11 17:20:23
【问题描述】:
我有自己的数字键盘。我需要edittext,但我不需要键盘。 我在 kotlin 做这个项目。 Is there any way to permanently hide soft keyboard but keep enabling focus for an EditText? 和 How do you close/hide the Android soft keyboard using Java? 这里有一个答案,但是我在 kotlin 中找不到代码。 我需要 kotlin 中的代码。 提前致谢。
https://snipboard.io/qZ0fYW.jpg我复制了 Java 代码,Android Studio 将其转换为 java,但失败并报错。
【问题讨论】:
标签: android kotlin android-edittext keyboard