android之让EditText不弹出软键盘
来源:互联网 发布:视频剪辑合成软件app 编辑:程序博客网 时间:2024/05/17 02:53
原文地址:
http://www.mars-droid.com/bbs/home.php?mod=space&uid=32706&do=blog&id=6161
方法一:
在AndroidMainfest.xml中选择哪个activity,设置windowSoftInputMode属性为adjustUnspecified|stateHidden
例如:<activity android:name=".Main"
android:label="@string/app_name"
android:windowSoftInputMode="adjustUnspecified|stateHidden"
android:configChanges="orientation|keyboardHidden">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<categoryandroid:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
方法二:
让EditText失去焦点,使用EditText的clearFocus方法
例如:EditText edit=(EditText)findViewById(R.id.edit);
edit.clearFocus();
方法三:
强制隐藏Android输入法窗口
例如:EditText edit=(EditText)findViewById(R.id.edit);
InputMethodManager imm =(InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);
imm.hideSoftInputFromWindow(edit.getWindowToken(),0);
方法四:EditText始终不弹出软件键盘
例:EditText edit=(EditText)findViewById(R.id.edit);
edit.setInputType(InputType.TYPE_NULL);
http://www.mars-droid.com/bbs/home.php?mod=space&uid=32706&do=blog&id=6161
方法一:
在AndroidMainfest.xml中选择哪个activity,设置windowSoftInputMode属性为adjustUnspecified|stateHidden
例如:<activity android:name=".Main"
方法二:
让EditText失去焦点,使用EditText的clearFocus方法
例如:EditText edit=(EditText)findViewById(R.id.edit);
方法三:
强制隐藏Android输入法窗口
例如:EditText edit=(EditText)findViewById(R.id.edit);
方法四:EditText始终不弹出软件键盘
例:EditText edit=(EditText)findViewById(R.id.edit);
- android之让EditText不弹出软键盘
- android edittext不弹出软键盘
- android edittext不弹出软键盘
- android edittext不弹出软键盘
- android edittext不弹出软键盘
- android edittext不弹出软键盘
- android EditText不自动弹出软键盘
- android设置EditText不弹出软键盘
- android edittext不弹出软键盘
- Android EditText不自动弹出软键盘
- Android EditText不弹出软键盘
- edittext不弹出软键盘
- Edittext不弹出软键盘
- edittext不弹出软键盘
- EditText不弹出软键盘
- Android 如何让EditText 失去焦点从而不弹出软键盘
- android两种方式设置EditText不弹出软键盘
- Android的EditText不弹出软键盘的方法
- 把年月日格式的时间转化成日历时间2013/8/21/10:20
- 6410之LCD驱动程序(驱动框架)
- 100个台阶的阶梯
- C# 检查 循环 编号 重复
- ios开发app带参数跳转
- android之让EditText不弹出软键盘
- ArcGIS Engine Runtime 10 中文补丁 可用于官方 ArcGIS Engine SP中文补丁的升级
- Android之setContentView和LayoutInflater
- C# Guid生成唯一标识符
- html5教程:基本页面布局
- eclipse 打开android错误
- sql 在where子句中使用的运算符
- 拓扑排序[理论]
- SSH错误:java.lang.reflect.InvocationTargetException