• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Close soft keyboard

 
Corey Applegate
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found a way but I need to create a OnEditorActionListener() for each EditText Box and place in it this:



That calls:



I also place this: Inside my SeekBarChangeListener so that if I lose focus on a EditText box to a Seekbar the key board closes. But i had to pick a random EditText to send to the " public void closekeyboard"


How can I build code to listen to just the enter button of the soft keyboard? And not have all this bulky code. The "private void closekeyboard" was my first attempt to eliminate some repetitive code.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic