I tried ui::textfield and used attachWithIME but it gives normal keypad only no input box like in the screenshots. The keypad must appear when a menu item is tapped and on enter/return the typed texts must be applied to a textfield.
And another big issue is, if I open keypad using attachWithIME() through tapping on a button it doesn’t get detached or go away when I tap on the other screen area. How can I force the open keypad to go away ?
Ok let’s forget about the keypad with input box that was in the screenshot.
I was able to show the keypad when I tap on a button (menuItemImage) using attachWithIME. But the keypad is not going away when I tap on other area in the screen. How can I do that ? If I just tap on the textfield or editbox it works. The keypad goes away when tapped on the other area. But if the keypad is brought by using textfield->attachWithIME() then it doesn’t go away unless it’s tapped on the enter/return key.
Could you also explain what is the use of these two methods ?
setDetachWithIME and setAttachWithIME
@siarsky: Thanks for your input but I’m bit confused here. How do I catch the event of attaching and detaching of the keypad ? I was using ui:TextField, but with textFieldTTF I wasn’t able to add an event listener. And with ui::textField can’t call detachWithIME() . It’d be great if you could guide me further.