File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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