TrainBeaser for iPhone
The moose likes Android and the fly likes Close soft keyboard Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Mobile » Android
Reply 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.
 
 
subject: Close soft keyboard
 
Threads others viewed
Cannot find the problem in the code
Keyboard events for EditText not reaching my event handler.
Creating Database and Tables
Learning about applets
SOAP validateUser
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com