Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- **keyboard event**
- CODE:
- public class MainActivity extends AppCompatActivity implements OnEditorActionListener
- public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {
- if (actionId == EditorInfo.IME_ACTION_DONE ||
- actionId == EditorInfo.IME_ACTION_UNSPECIFIED) {
- calculateAndDisplay();
- }
- return false;
- }
Add Comment
Please, Sign In to add comment