Advertisement
Guest User

Untitled

a guest
Jan 19th, 2017
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. <EditText
  2. android:singleLine="true"
  3. android:imeOptions="actionGo"/>
  4.  
  5. editText.setOnEditorActionListener(new TextView.OnEditorActionListener() {
  6. @Override
  7. public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {
  8. if(actionId== EditorInfo.IME_ACTION_GO){
  9. //perfrom your action
  10. }
  11. return false;
  12. }
  13. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement