如何以编程方式隐藏键盘三星Galaxy Note在android系统 [英] How to hide keyboard for samsung galaxy note programmatically in android

查看:236
本文介绍了如何以编程方式隐藏键盘三星Galaxy Note在android系统的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的数据和两个编辑文本时选择器,我想隐藏键盘两个编辑text.I正在做这样的

I am using data and time picker for two edit text, I want to hide keyboard for two edit text.I am doing like this

mDatePickerEdt = (EditText)findViewById(R.id.createwedding_datepicker_edt);
mTimePickerEdt = (EditText)findViewById(R.id.createwedding_timepicker_edt);
mDatePickerEdt.setInputType(InputType.TYPE_NULL);
mTimePickerEdt.setInputType(InputType.TYPE_NULL);

它正在为智能phones.I获得问题的三星Galaxy note.If任何一个事先已idea.Please帮助,谢谢。

it is working for smart phones.I getting problem in samsung galaxy note.If any one have idea.Please help, Thanks in advance.

推荐答案

您可以使用以下code隐藏键盘。

you can use following code to hide keyboard.

 getWindow().setSoftInputMode(
WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);

这篇关于如何以编程方式隐藏键盘三星Galaxy Note在android系统的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆