EditText上没有自动启动 [英] EditText doesn't start automatically
本文介绍了EditText上没有自动启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在我的应用程序,我有一个的EditText
。我怎么让它不自动启动?这样的:一旦他们打开活动它会自动将鼠标移动到的EditText
和键盘被打开,这样他们键入...
In my app, I have an EditText
. How do I make it doesn't start automatically? Like: once they open the activity it automatically sets the mouse to the EditText
and the keyboard gets opened so they type…
反正我可以把它打开(键盘显示,用户可以输入),当他们点击它?
Is there anyway I can make it open (the keyboard shows and the user can type) when they clicks on it?
推荐答案
好了,从你的问题我弄清楚,你的EditText越来越注重在启动活动。可以使用下面的命令来共进晚餐preSS键盘禁用焦点。
Ok, so from your question i figure out that your EditText is getting focus while starting the activity. You can disable the focus using following command to suppress the keyboard.
getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);
访问这个关闭/隐藏Android的软键盘
这篇关于EditText上没有自动启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文