This week's book giveaway is in the Java in General forum.
We're giving away four copies of Java by Comparison (eBook) and have Simon Harrer, Jörg Lenhard, Linus Dietz on-line!
See this thread for details.
Win a copy of Java by Comparison (eBook) this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Close soft keyboard  RSS feed

 
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
Boost this thread!