2014-08-06 3 views

ответ

2

Попробуйте создать DoneOnEditorActionListener и установить на ваш EditText как

class DoneOnEditorActionListener implements OnEditorActionListener { 

    @Override 
    public boolean onEditorAction(TextView v, int actionId, KeyEvent event) { 
     // TODO Auto-generated method stub 
     if (actionId == EditorInfo.IME_ACTION_DONE) { 
      InputMethodManager imm = (InputMethodManager) v.getContext().getSystemService(Context.INPUT_METHOD_SERVICE); 
      imm.hideSoftInputFromWindow(v.getWindowToken(), 0); 
      return true; 
     } 
     return false; 
    } 
} 

и установить в ваших EditText как

edit_Notes.setOnEditorActionListener(new DoneOnEditorActionListener()); 
+0

спасибо, это работает отлично –

+0

onEditorAction не получает вызов обратно в BootomSheetfragment –

Смежные вопросы