public void setOnKeyboardDone ( final IntlPhoneInputListener listener ) { mPhoneEdit . setOnEditorActionListener ( new TextView . OnEditorActionListener ( ) { @ Override public boolean onEditorAction ( TextView v , int actionId , KeyEvent event ) { if ( actionId == EditorInfo . IME_ACTION_DONE ) { listener . done ( IntlPhoneInput . this , isValid ( ) ) ; } return false ; } } ) ; }
Set keyboard done listener to detect when the user click DONE on his keyboard