tags:

views:

25

answers:

0

i used this 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.