i used t开发者_如何学编程his code
InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);
imm.hideSoftInputFromWindow(EditView.getWindowToken(), 0);
this code works fine in a class which extends Activity
but i need to hide virtual keyboard in a class which extends LinearLayout.
精彩评论