This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Android and the fly likes Close soft keyboard Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "Close soft keyboard" Watch "Close soft keyboard" New topic
Author

Close soft keyboard

Corey Applegate
Greenhorn

Joined: Feb 11, 2011
Posts: 5
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Close soft keyboard
 
Similar Threads
Creating Database and Tables
Keyboard events for EditText not reaching my event handler.
SOAP validateUser
Learning about applets
Cannot find the problem in the code