I have 14 edittext boxes that can convert a user to a wal. When the text turns into one of them, then a softpad key press on the 'Enter / Next / Action' key should be re-calculated using the new text. I tried on many listeners but it does not work on soft keyboard; Y Hard keypad I have tried testwetter like a tutorial, but when the user only has to enter a single digit, he counts and calculates, before the user inputs the number of two or more digits Could. So ... I work on the soft keypad to suppress the antiterror action listener, but I can not get the syntax rights. Here's what I have:
In On Crate Method:
myEdittext1.setOnEditorActionListener (this);
...
myEdittext14.setOnEditorActionListener (this);
Then, outside of the on-cut method, I have:
@Override Public boolean onEditorAction (TextView v, int actionId, KeyEvent event) {if (event.getKeyCode () == KeyEvent .FLAG_EDITOR_ACTION) {// Make my Calls}} Return (true); } The code gives me close business already. Any help would be greatly appreciated.
KeyEvent may be blank You must check this status in your audience.
v The view was clicked on. Identification of the action action This is either the identifier or editor you provide. TIME_NULL will be if the entrance key is being said due to the pressing. The event is triggered by an entry key; this is the event; Otherwise, it is zero OnEditorAction is the proper way to listen to completion and to complete soft keyboard tasks.
Comments
Post a Comment