Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <EditText
- android:singleLine="true"
- android:imeOptions="actionGo"/>
- editText.setOnEditorActionListener(new TextView.OnEditorActionListener() {
- @Override
- public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {
- if(actionId== EditorInfo.IME_ACTION_GO){
- //perfrom your action
- }
- return false;
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement