Code example for SearchView

Methods: getWindowToken

0
	@Override 
	public void onItemClick(AdapterView<?> parent, View view, int position,
			long id) {
		InputMethodManager imm = (InputMethodManager)getActivity().getSystemService(Context.INPUT_METHOD_SERVICE);
        //���������� 
        imm.hideSoftInputFromWindow(mSearchView.getWindowToken(), 0);
		mListView.requestFocus();
		mListView.setFocusable(true);
	} 
	 
	public abstract void show(BaseAdapter adapter);
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE