Tutorial

Tutorials, how to’s with large content

  1. Home
  2. chevron_right
  3. Tutorial
  4. (Page 7)

Detect when Done key is pressed

If you want to detect when a key from soft keyboard is pressed, like Done key, you can use the following code: mEditText = (EditText)findViewById(R.id.edit); mEditText.setOnEditorActionListener(new TextView.OnEditorActionListener() { @Override public…
Read More
Menu
Exit mobile version