Tuesday, 1 December 2015

android Edittext, hide keyboard


If you want to hide the keyboard after input, or after users click "done".

InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
imm.hideSoftInputFromWindow(barcodeInput.getWindowToken(), 0);


"barcodeInput" is the EditText





No comments:

Post a comment