在打开带有EditText控件的android程序时会自动弹出键盘提示输入,下面代码可禁止自动弹出,需在AndroidManifest.xml中添加。
找到EditText的父级控制加入:
android:focusable="true"
android:focusableInTouchMode="true
然后去掉EditText布局中原有的:
<requestFocus />
原文:http://www.cnblogs.com/-sev-/p/6526446.html