在我的应用程序,我有一个的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的软键盘