Hiding a soft keyboard has always been a headache for me, without finding a way to really hide it. The soft keyboard always pops up when clicked EditText. -----Cup Fixture
Cup Fixture (i):
Inputmethodmanager im = (inputmethodmanager) medit
getcontext (). Getsystemservice (Context.input_method_service) ;
Im.hidesoftinputfromwindow (SoftKeyTest.this.getCurrentFocus (). Getwindowtoken (),
Cup Fixture (ii):
<activity android:name= ". Softkeytest "
android:windowsoftinputmode=" Statealwayshidden "//Join this line
android:label=" @string/app_name " >
<intent-filter>
<action android:name= "Android.intent.action.MAIN"/>
<category Android:name= "Android.intent.category.LAUNCHER"/>
</intent-filter>
Cup Fixture (iii):
Medit.setonclicklistener (New View.onclicklistener () {
@Override public
void OnClick (View v) {
//TODO auto-generated method Stub
Beg you not to come out;
One attempt, this parameter finally hides the soft keyboard:
Washing Tools (i):
EditText et= (EditText) Findviewbyid (R.id.edit);
The above is a small set to introduce the Android development of the complete hidden soft keyboard method, I hope to help you, if you have any questions please give me a message, small series will promptly reply to everyone. Here also thank you very much for the cloud Habitat Community website support!