Monday, 15 April 2013

java - Get text from keyOutputText android -


The

Hello, I am developing a custom keyboard and I Android use: keyOutputText = "" Java class Keyboard XML How to get that text within? How do I use Android only: Code to use with decimal code.

I have had a try onKeyboardActionListener to ontext method keyOutputText hold . In this way:

  public class MyOnKeyboardActionListener OnKeyboardActionListener {@Override public void key (int primaryCode, int [] keyCodes) {// handle key code} @Override public void text (CharSequence text ) {Log D. ("Debug", "input text:" + text); } @ Override public wide on press (Int Praimrikod) {} ​​public void (Int Praimrikod on Aroiiiiarraid) {} ​​@ Override public wide swipe lift () {} @ Override Public Wide Swipe right () {} @ Override Public Wide Swaipdaun () {} @ override public Boyd Svipap () {}}  

it seems that keyOutputText setting when you press the key with the onKey The method will not be triggered.


No comments:

Post a Comment