Наверное один из самых "гадких" вопросов, связанный с клавиаутурой, как скрывать клавиаутуру при нажатии вне её области?
добавьте в OnClickListener на какое то View вызов этого метода
public static void hideSoftKeyboard(Activity activity) {
if (activity != null) {
InputMethodManager inputMethodManager = (InputMethodManager) activity.getSystemService(Activity.INPUT_METHOD_SERVICE);
if (inputMethodManager != null)
if (activity.getCurrentFocus() != null)
if (activity.getCurrentFocus().getWindowToken() != null)
inputMethodManager.hideSoftInputFromWindow(activity.getCurrentFocus().getWindowToken(), 0);
}
}
Сборка персонального компьютера от Artline: умный выбор для современных пользователей