在 TextView 中打开 EditText 的键盘
我有一个 Spinner(在对话框内),其中包含 EditText 作为其元素之一。 问题是当我在 EditText 内部单击时没有显示键盘。 我尝试了各种方法,例如每当发生 OnClick 或 OnItemSelected 事件时使用 InputMethodManager 手动打开软键盘,但这些方法都不适合我。
有什么建议吗?
提前致谢。
I have a Spinner(inside a dialog) that contains an EditText as one of its element.
The problem is that no keyboard is shown when I click inside the EditText.
I tried various methods like manually opening the softkeyboard with the InputMethodManager whenever there is an OnClick or OnItemSelected event occurs but none of these worked for me.
Any tips?
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
试试这个,
Try this,