I currently have ListView where each Item has a TextView and a CheckBox. On top of the ListView is an EditText to search the ListView. When a user has searched something and clicks one of the CheckBoxes or scrolls in the list of given results, I'd like the keyboard to go away. How can I do this?
I've handled the keyboard in my other activities using the InputMethodManager, but I can't call it inside the adapter because the EditText is outside its scope and I can't call it in the activity using the adapter because as far as it's concerned nothing's changing when clicking the CheckBox.
Can anyone point me in the right direction?
Thanks in advance